onplayerspawn
#1

Can anyone help me making this, When someones spawn it has to TogglePlayerContrable false, after 1 second i want it to set it for the spawning player to true.

the problem is, i am not sure if this is correct. (the SetTimerEx)
i have this:
pawn Код:
Onplayerspawn:
TogglePlayerControllable(playerid, false);
SetTimerEx("freezefree", 10000, 0, "i", playerid);

//-----------------------------

forward healthoff(playerid);
public healthoff(playerid)
{
    TogglePlayerControllable(playerid, true);
    return 1;
}
Reply
#2

try it lol. But change the healthoff to freezefree, or you will call another public
Reply
#3

pawn Код:
Onplayerspawn:
TogglePlayerControllable(playerid, false);
SetTimerEx("healthoff", 10000, 0, "i", playerid);

//-----------------------------

forward healthoff(playerid);
public healthoff(playerid)
{
    TogglePlayerControllable(playerid, true);
    return 1;
}
Try that.
Reply
#4

the public name should be the same as the timer name
Код:
Onplayerspawn:
TogglePlayerControllable(playerid, false);
SetTimerEx("Unfreeze", 10000, 0, "i", playerid);

//-----------------------------

forward Unfreeze(playerid);
public Unfreeze(playerid)
{
	TogglePlayerControllable(playerid, true);
	return 1;
}
Reply
#5

I know, i was tired yesterday and forgot to change some public names
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)