if(dialogid == hajvagasdialog){if(response){ switch(listitem) { case 0: { GameTextForPlayer(playerid, \"~w~Hajvágás folyamatban...\", 5000, 3); TogglePlayerControllable(playerid,0); SetTimer( \"haircuttime0\", 5000, false); } case 1: { GameTextForPlayer(playerid, \"~w~Hajvágás folyamatban...\", 5000, 3); TogglePlayerControllable(playerid,0); SetTimer( \"haircuttime1\", 5000, false); } case 2: { GameTextForPlayer(playerid, \"~w~Hajvágás folyamatban...\", 5000, 3); TogglePlayerControllable(playerid,0); SetTimer( \"haircuttime2\", 5000, false); } case 3: { GameTextForPlayer(playerid, \"~w~Hajvágás folyamatban...\", 5000, 3); TogglePlayerControllable(playerid,0); SetTimer( \"haircuttime3\", 5000, false); } case 4: { GameTextForPlayer(playerid, \"~w~Hajvágás folyamatban...\", 5000, 3); TogglePlayerControllable(playerid,0); SetTimer( \"haircuttime4\", 5000, false); } case 5: { GameTextForPlayer(playerid, \"~w~Hajvágás folyamatban...\", 5000, 3); TogglePlayerControllable(playerid,0); SetTimer( \"haircuttime5\", 5000, false); } }}} return 1;}public haircuttime0 (playerid);public haircuttime0 (playerid){ if(IsPlayerAttachedObjectSlotUsed(playerid,3)) RemovePlayerAttachedObject(playerid,3);SendClientMessage(playerid,COLOR_GREEN,\"(( Sikeres hajvágás! ))\");JatekosInfo[playerid][Haj] = 0;TogglePlayerControllable(playerid,1);}public haircuttime1 (playerid);public haircuttime1 (playerid){if(IsPlayerAttachedObjectSlotUsed(playerid,3)) RemovePlayerAttachedObject(playerid,3); SetPlayerAttachedObject( playerid, 3, 18640, 2, 0.081841, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); SendClientMessage(playerid,COLOR_GREEN,\"(( Sikeres hajvágás! ))\"); JatekosInfo[playerid][Haj] = 1; TogglePlayerControllable(playerid,1);}public haircuttime2 (playerid);public haircuttime2 (playerid){ if(IsPlayerAttachedObjectSlotUsed(playerid,3)) RemovePlayerAttachedObject(playerid,3); SetPlayerAttachedObject( playerid, 3, 18975, 2, 0.128191, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); SendClientMessage(playerid,COLOR_GREEN,\"(( Sikeres hajvágás! ))\"); JatekosInfo[playerid][Haj] = 2; TogglePlayerControllable(playerid,1);}public haircuttime3 (playerid);public haircuttime3 (playerid){ if(IsPlayerAttachedObjectSlotUsed(playerid,3)) RemovePlayerAttachedObject(playerid,3); SetPlayerAttachedObject( playerid, 2, 19077, 2, 0.124588, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); SendClientMessage(playerid,COLOR_GREEN,\"(( Sikeres hajvágás! ))\"); JatekosInfo[playerid][Haj] = 3; TogglePlayerControllable(playerid,1);}public haircuttime4 (playerid);public haircuttime4 (playerid){ if(IsPlayerAttachedObjectSlotUsed(playerid,3)) RemovePlayerAttachedObject(playerid,3); SetPlayerAttachedObject( playerid, 3, 19068, 2, 0.141113, 0.006911, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); SendClientMessage(playerid,COLOR_GREEN,\"(( Sikeres hajvágás! ))\"); JatekosInfo[playerid][Haj] = 4; TogglePlayerControllable(playerid,1); }public haircuttime5 (playerid);public haircuttime5 (playerid){ if(IsPlayerAttachedObjectSlotUsed(playerid,3)) RemovePlayerAttachedObject(playerid,3); SetPlayerAttachedObject( playerid, 3, 19274, 2, 0.099879, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); SendClientMessage(playerid,COLOR_GREEN,\"(( Sikeres hajvágás! ))\"); JatekosInfo[playerid][Haj] = 5; TogglePlayerControllable(playerid,1);}
public haircuttime0 (playerid)
SetTimer( \"haircuttime0\", 5000, false);
[/gmod]