CMD:munka(playerid, params[]){SetPVarInt(playerid, \"Munkavege\", 1);SendClientMessage(playerid, 0xFF0000AA, \"Gratulálok. Ez az új munkád\");SetTimerEx(\"Felmond\",360000,0,\"i\",playerid);return 1;}CMD:felmondani(playerid, params[]){if(GetPVarInt(playerid, \"Munkavege\") == 1) return SendClientMessage(playerid, 0xFF0000AA, \"Még nem dolgoztál 1órát.\"); if(GetPVarInt(playerid, \"Munkavege\") == 0) {SendClientMessage(playerid, 0xFF9900AA, \"Sikeresen felmondtál\"); }return 1;}forward Felmond(playerid);public Felmond(playerid){SetPVarInt(playerid, \"Munkavege\", 0); return 1;}
CMD:munka(playerid, params[]){SetPVarInt(playerid, \"Munkavege\", 1); // Ide a többi függvénytSendClientMessage(playerid, 0xFF0000AA, \"Gratulálok. Ez az új munkád\");SetTimerEx(\"Felmond\",360000,0,\"i\",playerid);return 1;}CMD:felmond(playerid, params[]){if(GetPVarInt(playerid, \"Munkavege\") == 1) return SendClientMessage(playerid, 0xFF0000AA, \"Még nem dolgoztál 1órát.\"); if(gTeam[playerid] > 0) { if(GetPVarInt(playerid, \"Munkavege\") == 0) { DestroyPlayerObject(playerid, 1252); KillTimer(Rendortimer[playerid]); DisablePlayerCheckpoint(playerid); gTeam[playerid] = 0; SendClientMessage(playerid,COLOR_GREEN,\"Felmondtál munkahelyedrõl!\"); SetPlayerSkin(playerid,0); SetPlayerPos(playerid,2035.6323,1338.7968,10.8203); } } else { SendClientMessage(playerid, COLOR_ULTRARED, \"Jelenleg nincs munkád!\"); } return 1;}forward Felmond(playerid);public Felmond(playerid){SetPVarInt(playerid, \"Munkavege\", 0); return 1;}