07.01.2014, 07:51
Uhm isn't it much easier to just use the class selection from OnGameModeInit?
https://sampwiki.blast.hk/wiki/AddPlayerClass
From sa-mp wiki:
I guess you could use ForceClassSelection under OnPlayerSpawn but then again it would be weird...
https://sampwiki.blast.hk/wiki/ForceClassSelection
https://sampwiki.blast.hk/wiki/AddPlayerClass
From sa-mp wiki:
pawn Код:
public OnGameModeInit()
{
// People can spawn with either the CJ skin or The Truth skin.
AddPlayerClass(0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0);
AddPlayerClass(1, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0);
return 1;
}
https://sampwiki.blast.hk/wiki/ForceClassSelection