14.06.2012, 19:29
pawn Код:
if(strcmp(cmd, "/dgun", true) == 0)
{
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playerid][pDonateRank] == 1)
{
format(string, sizeof(string), "*%s got an infinite ammo deagle.*", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 24, 999);
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " You are not a donator !");
return 1;
}
}
return 1;
}