Need Help With Setting a Timer For /Stuck [fixed]
#2

i dont understand what want to do but i can help with timer

example
Код:
if(strcmp(cmd, "/stuck", true) == 0)
{
   if(IsPlayerConnected(playerid))
   {
   SetTimerEx("stucktime", 15000, false, "d", playerid);//15000 = 15 sec
   }
   return 1;
}
add this at the end of your script
Код:
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;
}
Reply


Messages In This Thread
Need Help With Setting a Timer For /Stuck [fixed] - by Marouane - 21.01.2010, 11:22
Re: Need Help With Setting a Timer For /Stuck - by akis_tze - 21.01.2010, 11:30
Re: Need Help With Setting a Timer For /Stuck - by Vetle - 21.01.2010, 13:14
Re: Need Help With Setting a Timer For /Stuck - by Marouane - 21.01.2010, 19:52
Re: Need Help With Setting a Timer For /Stuck - by MadeMan - 21.01.2010, 20:32
Re: Need Help With Setting a Timer For /Stuck - by Marouane - 21.01.2010, 22:44

Forum Jump:


Users browsing this thread: 1 Guest(s)