Need help cars id
#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


Messages In This Thread
Need help cars id - by Typhome - 29.04.2009, 16:16
Re: Need help cars id - by Typhome - 29.04.2009, 20:11
Re: Need help cars id - by flowhunter - 29.04.2009, 21:02
Re: Need help cars id - by Typhome - 30.04.2009, 19:55
Re: Need help cars id - by Weirdosport - 30.04.2009, 21:00
Re: Need help cars id - by ferriswheel - 30.04.2009, 21:52

Forum Jump:


Users browsing this thread: 1 Guest(s)