12.07.2014, 20:54
Try this and tell me if something goes wrong.
pawn Код:
CMD:0penlocker(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid,1.0,403.8266,-2088.7598,7.8359) || IsPlayerInRangeOfPoint(playerid,1.0,398.7553,-2088.7490,7.8359))
{
if(PlayerInfo[playerid][pDonator] >= 1)
{
GivePlayerValidAdminWeapon(playerid, 27, 99999);
GivePlayerValidAdminWeapon(playerid, 29, 99999);
GivePlayerValidAdminWeapon(playerid, 31, 99999);
}
else return SendClientMessage(playerid, COLOR_GREY, "You are not near to the locker");
}
else return SendClientMessage(playerid,COLOR_GREY,"You are not a VIP");
}