Hello need help with y_groups... Never worked with it.. Thats why I'am asking.
#5

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:
pawn Код:
new g_pClassID[ MAX_PLAYERS ];
OnPlayerRequestClass:
pawn Код:
g_pClassID[ playerid ] = classid;
OnPlayerSpawn:
pawn Код:
if( g_pClassID[ playerid ] == 1 )
{
    Group_SetPlayer( Group1, playerid, true );
}
else if( g_pClassID[ playerid ] == 2 )
{
    Group_SetPlayer( Group2, playerid, true );
}
Something like that.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)