#2

Uhm isn't it much easier to just use the class selection from OnGameModeInit?
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;
}
I guess you could use ForceClassSelection under OnPlayerSpawn but then again it would be weird...
https://sampwiki.blast.hk/wiki/ForceClassSelection
Reply


Messages In This Thread
Help - by [SU]Spartan - 07.01.2014, 07:11
Re: Help - by Voxel - 07.01.2014, 07:51
Re: Help - by [SU]Spartan - 07.01.2014, 10:13

Forum Jump:


Users browsing this thread: 1 Guest(s)