[Pomoc] ZCMD Komanda

Započeo [NG | RP] Almir, Mart 05, 2013, 21:11:01 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

CMD:test(playerid, params[])
{
new id,vreme,razlog[64],sendername[MAX_PLAYER_NAME],giveplayer[MAX_PLAYER_NAME];
new string[256];
if(sscanf(params,"uis[64]",id,vreme,razlog)) return SendClientMessage(playerid, COLOR_GRAD2, "Koristi: /area ID igraca, Vrijeme, Razlog");
if(PlayerInfo[playerid][pAdmin] <= 1) return SendClientMessage(playerid, COLOR_GRAD1, "{ffff00}BC {ffffff}| "svpl"Niste ovlasteni za upotrebu ove komande.");
GetPlayerName(id, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[id][pJailTime] = vreme*60;
PlayerInfo[id][pJailed] = 1;
area[id] = 1;
SetTimerEx("Ucitavanje",3000,false,"i",id);
SetPlayerPos(id,1799.6670,-140.8276,4.1024);
SetPlayerInterior(id, 0);
SetPlayerVirtualWorld(id, 0);
ResetPlayerWeapons(id);
format(string, sizeof(string), ""svpl"Admin %s vas je zatvorio u areu na %d minuta!",sendername,vreme);
SendClientMessage(id, WHITE, string);
format(string, sizeof(string), ""svpl"Razlog kazne: {ffffff}%s",razlog);
SendClientMessage(id, WHITE, string);
format(string,sizeof string,"{FF0000}Adm{FFFFFF} |{00C0FF} Admin %s je zatvorio igraca %s u areu na %d min. Razlog: %s",sendername,giveplayer,vreme,razlog);
SendAdminMessage(SVETLOPLAVA,string);
return 1;
}


Ovo mora da radi! Ako ne onda je nesto drugo, nije do komande sigurno.