Settimer
#1

I use this

Код:
TogglePlayerControllable(playerid, 0);
but i wanna set a timer so only after 5 seconds it takes the PlayerControl
can anybody help me?
Reply
#2

SetTimerEx.
Reply
#3

Quote:
Originally Posted by Retardedwolf
Посмотреть сообщение
SetTimerEx.
ive tryed

Код:
TogglePlayerControllable(playerid, 0);
SetTimerEx("TogglePlayerControllable", 50000, playerid);
but didnt work..
Reply
#4

pawn Код:
SetTimerEx("Control", 50000, true, "i", playerid);

forward Control(playerid);
public Control(playerid)
{
        TogglePlayerControllable(playerid, 0);
        return 1;
}
Reply
#5

pawn Код:
forward CanMove(playerid); //Top

TogglePlayerControllable(playerid, 0);  //Where need
SetTimerEx("CanMove", 50000,0,"i",playerid);

public CanMove(playerid)
{
TogglePlayerControllable(playerid,1);
}
Reply
#6

It works now thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)