14.01.2012, 17:40
Okay lets say i don't want the player request class thing popping up and things. how will i make it so the player basicly force spawns?
SpawnPlayer(playerid);
// create a new global varibale at top of script
// new FirstSpawn[MAX_PLAYERS char];
public OnPlayerConnect(playerid)
{
TogglePlayerSpecating(playerid, 1);
FirstSpawn{playerid} = 1;
return 1;
}
public OnPlayerSpawn(playerid)
{
if(FistSpwan{playerid} == 1)
{
FirstSpawn{playerid} = 0;
SetPlayerPos(playerid, pos1, pos2, pos3); // put your postions in here too and see if that works.
TogglePlayerSpectating(playerid, 0);
}
return 1;
}