18.06.2011, 19:36
Thanx!
I have this now:
But i want, when he doesn't have enough money then there will come a message like:
SendClientMessage(playerid, 0xFFFFFFFF, "You don't have enough money for this vehicle!");
I have this now:
PHP код:
new veh4;
if(IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, 0xFFFFFFFF, "You are already in a vehicle, leave your car to spawn a new one.");
}
else
veh4 = CreateVehicle(411, 2135.12, -2552.65, 13.55, 90, 0, 0, 100000000000000000000000000);
PutPlayerInVehicle(playerid,veh4,0);
SetCameraBehindPlayer(playerid);
SendClientMessage(playerid, 0xFFFFFFFF, "You bought a brand new Infernus!!");
GivePlayerMoney(playerid,-2500);
SendClientMessage(playerid, 0xFFFFFFFF, "You don't have enough money for this vehicle!");