CreateVehicle & OnVehicleDeath
#5

im doing it like this:

Код:
if(strcmp(cmd, "/rtrain", true) == 0) {

playercash = GetPlayerMoney(playerid);

      new Float:xpos;
      new Float:ypos;
      new Float:zpos;

      GetPlayerPos(playerid, Float:xpos, Float:ypos, Float:zpos);

      if(playercash > 1400) {
      CreateVehicle(515, xpos, ypos+4, zpos, 90, -1, -1, -1);
      GivePlayerMoney(playerid, -1400);
      }
      else
      {
      SendClientMessage(playerid, 0xFFFFFFAA, "You need more money.");
      }
	return 1;
}
Reply


Messages In This Thread
CreateVehicle & OnVehicleDeath - by adsy - 06.01.2010, 13:08
Re: CreateVehicle & OnVehicleDeath - by Correlli - 06.01.2010, 13:12
Re: CreateVehicle & OnVehicleDeath - by adsy - 06.01.2010, 13:17
Re: CreateVehicle & OnVehicleDeath - by Correlli - 06.01.2010, 13:21
Re: CreateVehicle & OnVehicleDeath - by adsy - 06.01.2010, 13:23

Forum Jump:


Users browsing this thread: 3 Guest(s)