Need help cars id - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need help cars id (
/showthread.php?tid=75170)
Need help cars id -
Typhome - 29.04.2009
Код:
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 ?
Re: Need help cars id -
Typhome - 29.04.2009
Anyone ? (Sorry for bump )
Ineed it! (my GM building is 87% the stopped from the i need them cars id)
Re: Need help cars id -
flowhunter - 29.04.2009
https://sampwiki.blast.hk/wiki/Vehicles:All
Re: Need help cars id -
Typhome - 30.04.2009
Not that only INGAME CARS ID
like newcar = 100 , newcar = 111
Id
Re: Need help cars id -
Weirdosport - 30.04.2009
Not entirely sure what you're asking, is the script broken or what?
Re: Need help cars id -
ferriswheel - 30.04.2009
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...