13.06.2011, 17:47
Hello,
I would like this script changed from being a riot shield to armor.
I did a few edits like the /armor and the "[SCRP]: you are not a cop!" and "You are now wearing armor."
I would like this script changed from being a riot shield to armor.
I did a few edits like the /armor and the "[SCRP]: you are not a cop!" and "You are now wearing armor."
pawn Код:
if(strcmp("/armor", cmdtext, true, 10) == 0)//Riot Shield - PaNoULiS
{
if(PlayerInfo[playerid][pSFMember] != 1 && PlayerInfo[playerid][pRank] <= 3)
{
SendClientMessage(playerid, COLOR_RED, "[SCRP]: Error, You are Not a cop!");
return 1;
}
SendClientMessage(playerid, COLOR_WHITE, "You are Now wearing Armor.");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "** %s grabs a pair of police armor and puts it on.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
PutRiotShieldOnArm(playerid);
return 1;
}