23.10.2013, 19:32
well i made a skin save command, to save the skin to spawn the player in the current skin on next time he logged in..
so how to make this command makes the classes switching disabled, and to be only one skin choose able (the saved skin).
what i make is this, and didn't work.....
i put this under on game mode in it callback:
Notes After reading the code:
PlayerInfo[i][pSkinSave]: its set to 1 when the player type the save skin command.
PlayerInfo[i][pSkin] = Get Player Skin (playerid).
so how to make this command makes the classes switching disabled, and to be only one skin choose able (the saved skin).
what i make is this, and didn't work.....
i put this under on game mode in it callback:
Notes After reading the code:
PlayerInfo[i][pSkinSave]: its set to 1 when the player type the save skin command.
PlayerInfo[i][pSkin] = Get Player Skin (playerid).
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pSkinSave] == 1)
{
AddPlayerClass(PlayerInfo[i][pSkin],2128.4822,1144.7655,13.5090,101.9559,0,0,0,0,0,0);
}
}
}