27.12.2010, 05:05
Quote:
I wouldn't suggest giving them the gamemode, even thought they wouldn't want anything to do with it im sure.
|
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
if(IsPlayerNPC(playerid))
{
printf("NPC: OnPlayerRequestClass: %d", playerid);
return 1;
}
if(gPlayerLogged[playerid] == 0)
{
TogglePlayerSpectating(playerid, 1);
return 1;
}
SetupPlayerForClassSelection(playerid);
if(gPlayerSpawned[playerid] == 1)
{
if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pLeader] > 0 || PlayerInfo[playerid][pFMember] != 255)
{
SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
}
else
{
PlayerInfo[playerid][pModel] = PedSkins[classid][0];
}
}
else
{
SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
}
return 1;
}