21.07.2014, 18:16
well how can i do that if player has an saved skin it will only show that skin for class selection and when he registers he can see all the skins for choosing first time
i tried this it was no use
INVALID_SKIN_ID = 350
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,513.0550,-15.1650,1001.5653);
SetPlayerCameraPos(playerid, 513.1265, -12.1960, 1001.7545);
SetPlayerCameraLookAt(playerid, 513.0715, -13.1931, 1001.8734);
SetPlayerFacingAngle( playerid, 359.1068);
SetPlayerInterior(playerid, 3);
if(!pInfo[playerid][LoggedInAsPlayer])
{
LoginOrRgisteryBox(playerid);
}
if(pInfo[playerid][newlife] || pInfo[playerid][Savedskin] == INVALID_SKIN_ID)
{
switch(classid)
{
case 0..274: GameTextForPlayer(playerid,SkinNames[classid], 3000, 5);
}
}
AddPlayerClass(pInfo[playerid][Savedskin],1523.8240,-43.7732,1002.1310,180.0000,0,0,0,0,0,0); //
if(pInfo[playerid][Savedskin] != INVALID_SKIN_ID)
{
classid =275;
}
return 1;
}
INVALID_SKIN_ID = 350