Need help cars id
#1

Код:
	if(strcmp(cmd, "/respawnthiscar", true) == 0 || strcmp(cmd, "/rtc", true) == 0) // by Ellis
	{
	  if(IsPlayerConnected(playerid))
	  {
			if(IsPlayerInAnyVehicle(playerid))
			{
			  GetPlayerName(playerid, sendername, sizeof(sendername));
			  format(string, 256, "%s has just respawned vehicle id %d.",sendername,GetPlayerVehicleID(playerid));
				ABroadCast(COLOR_YELLOW,string,1);
			  SetVehicleToRespawn(GetPlayerVehicleID(playerid));
 				RemovePlayerFromVehicle(playerid);
			  SendClientMessage(playerid, BLUE, " Vehicle Respawned !");
			  SendClientMessage(" CAR ID: %d ", GetPlayerVehicleID(playerid));
 			}
		}
		return 1;
	}
Can anyone help ?

or anything ?

I added them cars in game and i need them cars id for newcar = ...

How ?
Reply
#2

Anyone ? (Sorry for bump )

Ineed it! (my GM building is 87% the stopped from the i need them cars id)
Reply
#3

https://sampwiki.blast.hk/wiki/Vehicles:All
Reply
#4

Not that only INGAME CARS ID

like newcar = 100 , newcar = 111
Id
Reply
#5

Not entirely sure what you're asking, is the script broken or what?
Reply
#6

You haven't posted a newcar variable in the code above, so I'm not sure what you're asking...

Код:
	if(strcmp(cmd, "/respawnthiscar", true) == 0 || strcmp(cmd, "/rtc", true) == 0) // by Ellis
	{
	  if(IsPlayerConnected(playerid))
	  {
			if(IsPlayerInAnyVehicle(playerid))
			{
              new newcar = GetPlayerVehicleID(playerid);
			  GetPlayerName(playerid, sendername, sizeof(sendername));
			  format(string, 256, "%s has just respawned vehicle id %d.",sendername,GetPlayerVehicleID(playerid));
				ABroadCast(COLOR_YELLOW,string,1);
			  SetVehicleToRespawn(GetPlayerVehicleID(playerid));
  				RemovePlayerFromVehicle(playerid);
			  SendClientMessage(playerid, BLUE, "  Vehicle Respawned !");
			  SendClientMessage("  CAR ID: %d ", GetPlayerVehicleID(playerid));
  			}
		}
		return 1;
	}
I added a line to get a newcar variable, if that's what you want...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)