21.01.2010, 11:30
i dont understand what want to do but i can help with timer
example
add this at the end of your script
example
Код:
if(strcmp(cmd, "/stuck", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SetTimerEx("stucktime", 15000, false, "d", playerid);//15000 = 15 sec
}
return 1;
}
Код:
forward stucktime();
public stucktime()
{
new Float:slx, Float:sly, Float:slz;
GetPlayerPos(playerid, slx, sly, slz);
SetPlayerPos(playerid, slx, sly, slz+2);
TogglePlayerControllable(playerid, 1);
return 1;
}

