My car spawning problem.?
#3

Thanx!

I have this now:

PHP код:
            new veh4;
            if(
IsPlayerInAnyVehicle(playerid))
            {
            
SendClientMessage(playerid0xFFFFFFFF"You are already in a vehicle, leave your car to spawn a new one.");
            }
            else
            
veh4 CreateVehicle(4112135.12, -2552.6513.559000100000000000000000000000000);
            
PutPlayerInVehicle(playerid,veh4,0);
            
SetCameraBehindPlayer(playerid);
            
SendClientMessage(playerid0xFFFFFFFF"You bought a brand new Infernus!!");
            
GivePlayerMoney(playerid,-2500); 
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!");
Reply


Messages In This Thread
My car spawning problem.? - by lawonama - 18.06.2011, 18:28
Re: My car spawning problem.? - by boelie - 18.06.2011, 19:00
Re: My car spawning problem.? - by lawonama - 18.06.2011, 19:36
Re: My car spawning problem.? - by boelie - 18.06.2011, 19:46

Forum Jump:


Users browsing this thread: 1 Guest(s)