CMD:report(playerid,params[]){if(IsPlayerConnected(playerid) && Belepve[playerid] == 1){ new szoveg; new string[128]; new neve[MAX_PLAYER_NAME]; new id; GetPlayerName(id,neve,sizeof(neve)); if(sscanf(params,\"s\",szoveg))return SendClientMessage(playerid, FEHER,\"(( Használat: /report [szöveg] ))\");format(string,sizeof(string),\"*REPORT* %s[%d]: %s\",neve,playerid,szoveg);SendAdminMessage(FEHER,string);return 1;}return 1;}
new szoveg;if(sscanf(params,\"s\",szoveg)) //...format(string,sizeof(string),\"*REPORT* %s[%d]: %s\",neve,playerid,szoveg);
new szoveg[128];
new BortonTimer[MAX_PLAYERS];forward IsPlayerSzabad(playerid);
public IsPlayerSzabad(playerid){pInfo[playerid][pBorton] --; // átirandóif(pInfo[playerid][pBorton] <= 0) // átirandó{pInfo[playerid][pBorton] = 0; // átirandó KillTimer(BortonTimer[playerid]); SendClientMessage(playerid, NARANCS, \"Letöltötted a büntetésed, újra szabad vagy!\"); SetPlayerInterior(playerid, 0), SetPlayerVirtualWorld(playerid, 0), SetPlayerPos(playerid, 0.0,0.0,0.0);}return 1;}
KillTimer(BortonTimer[playerid]);
CMD:ajail(playerid, params[]){if(JatekosInfo[playerid][Moderator] == 1 || JatekosInfo[playerid] >= 1){new Ido, Indok[128], S[128];if(sscanf(params, \"uds\", id, Ido, Indok)) return SendClientMessage(playerid, PIROS, \"Használat: /ajail [PlayerID] [Perc] [indok]\"); if(!IsPlayerConnected(id)) return SendClientMessage(playerid, PIROS, \"A játékos nem elérhető!\");pInfo[id][pBorton] = Ido * 60; //átírandóSetPlayerInterior(id, 0), SetPlayerPos(id, 0.0,0.0,0.0);format(S, sizeof(S), \"%s börtönbe zárt! Indok: %s. Időtartam: %d Perc\",Nev(playerid), Indok, Ido);SendClientMessage(id, PIROS, S);SendClientMessage(playerid, ZOLD, \"Börtönbe zártad az illetőt!\"); KillTimer(BortonTimer[id]);BortonTimer[id] = SetTimerEx(\"IsPlayerSzabad\", 1000, true, \"i\", id);}else{ SendClientMessage(playerid, PIROS, \"Nem vagy Moderátor!\");}return 1;}