24.12.2012, 11:48
Quote:
I think for what you want, you'll have to replace the || with the &&.
quicker way would be an array, I guess.. |
![Smiley](images/smilies/smile.png)
Also maybe you will know whats wrong here?
pawn Код:
case 0: // PCSO // nothing
{
if(FacInfo[playerid][fRank1] == 1)
SetPlayerSkin(playerid, 71);
format(string, sizeof(string), "* %s puts on their community support clothing.", RPN(playerid));
SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
}
case 1: // Warrented Officer // Baton + Spray
{
if(FacInfo[playerid][fRank1] >= 1) return SendClientMessage(playerid, COLOR_GREY, "You're not a high enough rank!");
GiveZaiatWeapon(playerid, 3, 1);
GiveZaiatWeapon(playerid, 41, 1000);
SetPlayerSkin(playerid, 280);
format(string, sizeof(string), "* %s grabs a Baton and CS Spray from their locker.", RPN(playerid));
SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
}