09.06.2012, 16:32
Hi,i made a registering system and when you get a randomed skin depending what gender you select.
Now i have this problem when a player spaws he always has the CJ skin.Maybe it is because of this public
Can someone help me with this or give me and example how to save or load player skins?
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case DIALOG_REGISTER:
{
if(response)
{
new rand = random(sizeof(MaleSkins));
SetPlayerSkin(playerid, MaleSkins[rand]);
}
else
{
new rand = random(sizeof(FemaleSkins));
SetPlayerSkin(playerid, FemaleSkins[rand]);
}
}
}
return 1;
}
pawn Код:
OnPlayerRequestClass(playerid, classid)
{
TogglePlayerSpectating(playerid, 0);
SetSpawnInfo( playerid, 0, 0, 1649.8920,-2286.4458,-1.2098,180.2326, 26, 36, 28, 150, 0, 0 );
SpawnPlayer(playerid);
return 1;
}