03.07.2015, 18:33
Bumped into many problems on the SA:MP forum, yet, none mentions the problem I am having.
I set up two groups: Citizens and Police. I added 3 skins for the citizens group and 5 for the police group. I set the player's group after his data has loaded. Yet, all the skins are visible for the player.
This is how my code looks like:
OnGameModeInit:
OnPlayerRequestClass:
OnPlayerRequestSpawnEx (y_classes callback):
OnPlayerLoad (Custom callback; when the player's data is being loaded)
Help is much appreciated.
I set up two groups: Citizens and Police. I added 3 skins for the citizens group and 5 for the police group. I set the player's group after his data has loaded. Yet, all the skins are visible for the player.
This is how my code looks like:
OnGameModeInit:
PHP код:
Class_AddForGroup(g_Police, 309, 1533.5762, -1675.4774, 13.3828, 89.7579, 0, 0, 0, 0); // (7)
// I also tried Class_AddEx
PHP код:
switch(classid)
{
case 0..2:
{
// Code
}
case 3..7:
{
// Code
}
}
PHP код:
// Has the same structure of that of OnPlayerRequestClass
PHP код:
Group_SetPlayer(g_Police, playerid, false);