17.07.2015, 19:13
so like:
PHP код:
if(listitem == 0)
{
if (GetPlayerCash(playerid) >= 500){
if (PlayerInfo[playerid][pDonateRank] >= 3)
{
GivePlayerCash(playerid, -500);
GivePlayerValidWeapon(playerid, 25, 60000);
format(string, sizeof(string), "Pumped Shotgun Purchase.");
SendClientMessageEx(playerid, COLOR_RED, string);
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD4, "You don't have the cash for this item!");
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD4, "You need to be gold vip +!");
}
}