02.04.2016, 05:24
Title says it all.
https://sampwiki.blast.hk/wiki/AddPlayerClass
https://sampwiki.blast.hk/wiki/OnPlayerRequestClass Those are the two key things to do so. Unless you wanted something else, be more specific. |
new bool:SelectedSkin[MAX_PLAYERS];
// Registering...
SelectedSkin[playerid] = false;
public OnPlayerRequestClass(playerid, classid)
{
if(SelectedSkin[playerid])
{
//SetSpawnInfo(playerid, 0, 0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
}
else
{
// have them select it
}
return 1;
}