29.03.2017, 00:27
Quote:
Code examples
pawn Код:
|
pawn Код:
public OnPlayerUseGarage(playerid, vehicleid, type)
{
if(type == GARAGE_PAYNSPRAY)
{
SendClientMessage(playerid, COLOR_WHITE, "You have been charged $100 for respraying your vehicle.");
PlayerInfo[playerid][pMoney] -= 100;
}
else if(type == GARAGE_BOMBSHOP)
{
SendClientMessage(playerid, COLOR_WHITE, "You have been charged $500 for using the bomb shop.");
PlayerInfo[playerid][pMoney] -= 500;
}
return 1;
}