25.04.2016, 21:43
How can I do that instantly after succession in logging in, the player will spawn (without that "<" ">" "Spawn" where I have to click on it.)
forward SkipSpawn(playerid);
public OnPlayerRequestClass(playerid)
{
SetTimerEx("SkipSpawn",0,1,"i",playerid);//It's required to have atleast 1 millisecond
return 1;
}
public SkipSpawn(playerid)
{
//Set Spawn Information Here Using SpawnInfo(...);
SpawnPlayer(playerid);
return 1;
}
Add this to LoadChar function ? What team etc should I use on an RP server ?
Note: LoadChar function is used to retrieve all info from MySQL database EDIT: The callback called after clicking this spawn button is OnPlayerRequestSpawn or OnPlayerRequestClass ? |
SetSpawnInfo(playerid, 0, PlayerInfo[playerid][Skin], x, y, z, facing angle, 0, 0, 0, 0, 0, 0);