Posts: 195
Threads: 36
Joined: Dec 2013
Reputation:
0
Hey guys i need help how to make /class command.
I want to make when player type /class after 10 sec.
It should work similar like f4 to redirect you to class selection
Posts: 1,168
Threads: 60
Joined: Dec 2016
Reputation:
0
Create a timer and use ForceClassSelection(playerid);
Use the damn search function...
Posts: 115
Threads: 0
Joined: Mar 2018
Quote:
Originally Posted by RxErT
Just tell me how you are enabling and disabling player spectating in the same time?
PHP код:
CMD:class(playerid, params[])
{
SetTimerEx("ClassSelection", 10000, false, "i", playerid);
SendClientMessage(playerid, -1,"[INFO] Cambio de clase en 10 segundos");
return 1;
}
public ClassSelection(playerid)
{
ForceClassSelection(playerid);
TogglePlayerSpectating(playerid, true);
return 1;
}
public OnPlayerSpawn(playerid)
{
TogglePlayerSpectating(playerid, false);
return 1;
}
|
Код:
forward ClassSelection(playerid);