28.08.2009, 05:33
Код:
If(PlayerInfo[playerid][pChar] == 1||PlayerInfo[playerid][pChar] == 2||PlayerInfo[playerid][pChar] == 3||PlayerInfo[playerid][pChar] == 4) { SetPlayerSkin(playerid, 135); PlayerInfo[playerid][pChar] = 135; }
If(PlayerInfo[playerid][pChar] == 1||PlayerInfo[playerid][pChar] == 2||PlayerInfo[playerid][pChar] == 3||PlayerInfo[playerid][pChar] == 4) { SetPlayerSkin(playerid, 135); PlayerInfo[playerid][pChar] = 135; }
Originally Posted by dice7
Isn't CJs skin ID 0 ?
|
If(PlayerInfo[playerid][pChar] == 0||PlayerInfo[playerid][pChar] == 1||PlayerInfo[playerid][pChar] == 2||PlayerInfo[playerid][pChar] == 3||PlayerInfo[playerid][pChar] == 4) { SetPlayerSkin(playerid, 135); PlayerInfo[playerid][pChar] = 135; }
public OnPlayerSpawn(playerid)
{
if(GetPlayerSkin(playerid) == 0)
{
SetPlayerSkin(playerid, 135);
PlayerInfo[playerid][pChar] = 135;
SendClientMessage(playerid, COLOR, "You can't use CJs skin. Changing to another one. Press F4 if you want to select a new skin");
}
}
Originally Posted by dice7
I would still use native functions rather then my own variables to find the players skin, since they are the most accurate.
But your example would work pawn Код:
|