08.05.2012, 06:04
Something like this for on player death:
Edit your command to this:
In your enum group you will need to add, gPlayerSpying.
pawn Код:
if(gPlayerClass[playerid] == SPY)
{
SetPlayerColor(playerid, TeamColor);
gPlayerSpying[playerid] = 0;
}
pawn Код:
CMD:spyusa(playerid,parmas[])
{
if(gPlayerClass[playerid] == SPY)
{
SetPlayerSkin(playerid,287);
new TeamColor = GetPlayerColor(playerid);
SetPlayerColor(playerid,COLOR_BLUE);
gPlayerSpying[playerid] = 1;
SendClientMessage(playerid,COLOR_BLUE,"You have been changed your skin to USA TEAM!");
}
else
{
SendClientMessage(playerid,COLOR_DARKRED,"ERROR: You need to get SPY Class to use this Command");
}
return 1;
}