20.01.2013, 01:48
Hmm, not really, no.
I would recommend storing classid in a global variable, then on spawn (OnPlayerSpawn) set the group out from what classid he chose.
On top:
OnPlayerRequestClass:
OnPlayerSpawn:
Something like that.
I would recommend storing classid in a global variable, then on spawn (OnPlayerSpawn) set the group out from what classid he chose.
On top:
pawn Код:
new g_pClassID[ MAX_PLAYERS ];
pawn Код:
g_pClassID[ playerid ] = classid;
pawn Код:
if( g_pClassID[ playerid ] == 1 )
{
Group_SetPlayer( Group1, playerid, true );
}
else if( g_pClassID[ playerid ] == 2 )
{
Group_SetPlayer( Group2, playerid, true );
}