26.12.2011, 15:51
Why not do so as in the example?
if(newkeys & KEY_FIRE && GetPVarInt(playerid,"disguised") == 1) {
if(IsPlayerTeam(playerid,"white")) SetPlayerSkin(playerid,SPY_WHITE);TogglePlayerCont rollable(playerid,1);
if(IsPlayerTeam(playerid,"black")) SetPlayerSkin(playerid,SPY_BLACK);TogglePlayerCont rollable(playerid,1);
}
if(newkeys & KEY_FIRE && GetPVarInt(playerid,"disguised") == 1) {
if(IsPlayerTeam(playerid,"white")) SetPlayerSkin(playerid,SPY_WHITE);TogglePlayerCont rollable(playerid,1);
if(IsPlayerTeam(playerid,"black")) SetPlayerSkin(playerid,SPY_BLACK);TogglePlayerCont rollable(playerid,1);
}