17.06.2014, 13:48
How to remove the "Spawn" button:
After the player has logged in:
And nothing happens when the player press the "Spawn" button!
Now how to remove the "<<" and ">>" buttons:
Add 2 player classes:
Код:
new bool:allowspawn[MAX_PLAYERS];
Код:
public OnPlayerConnect(playerid) { allowspawn[playerid] = false; }
Код:
allowspawn[playerid] = true;
Код:
public OnPlayerRequestSpawn(playerid) { if(allowspawn[playerid] == false) return 0; }
Now how to remove the "<<" and ">>" buttons:
Add 2 player classes:
Код:
public OnGameModeInit() { AddPlayerClass(0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0); AddPlayerClass(0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0); }
Код:
public OnPlayerRequestClass(playerid, classid) { if(classid == 1) return 0; }