18.03.2011, 16:44
okay doesnt work =(
new code :
still Shows me the SendClientMessage if i leave the optional one blank
new code :
Код:
CMD:jail(playerid,params[])
{
new c,id,p,t,s[128],n[32],j[32];
if(sscanf(params,"uiI(1)",p,t,id)) return SendClientMessage(playerid,red,"USAGE:/jail [playerid] [time] [cell]");
if(id>0) c=id-1;
else c=0;
SetPlayerPos(p,cspwn[c][0],cspwn[c][1],cspwn[c][2]);
SetTimerEx("jailedd",t*60000,false,"i",p);
GetPlayerName(playerid,n,32);
GetPlayerName(p,j,32);
format(s,128,"***%s has been jailed by officer %s.",j,n);
SendClientMessageToAll(COLOR_YELLOW,s);
jailed[playerid]=1;
return 1;
}

