06.10.2009, 23:53
hi i try make a jail command with dcmd but i have a problem with a timer
i have a problem with the timer it don't execute
how can fix it?
thaks
Quote:
new otherid,reason,time; |
Quote:
dcmd(jail,4,cmdtext); |
Quote:
dcmd_jail(playerid,params[]){ if(sscanf(params,"ddz",otherid,time,reason)) return SendClientMessage(playerid,0x33CCFFAA ,"USAGE: /jail [playerid] [time] [reason]"); if(!IsPlayerConnected(otherid)) return SendClientMessage(playerid,0xFF0000AA,"this player isnt conected!"); SetPlayerPos(arrestadoid,197.6661,173.8179,1003.02 34); SetPlayerInterior(arrestadoid,3); SetTimerEx("unjail",60000*time,false,"i",otherid); return 1; } |
Quote:
forward unjail(); public unjail(){ SetPlayerPos(arrestadoid,2336.6738,2456.2771,14.96 8; SetPlayerInterior(arrestadoid,0); } |
how can fix it?
thaks