Car assign to variable - 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: Car assign to variable (
/showthread.php?tid=245244)
Car assign to variable -
GaudenasLT - 30.03.2011
Hi, how to car assign to variable? Example
Код:
new Infernus (modelid);
Код:
CMD:car(playerid)
{
SendClientMessage(playerid, COLOR_GREEN,"* You car model is %d", Infernus);
return 1;
}
Help me ;//
Re: Car assign to variable -
kickflipdude - 30.03.2011
Like, how to assign a car to a certain person?
Re: Car assign to variable -
GaudenasLT - 30.03.2011
I ask this script...
Re: Car assign to variable -
xir - 30.03.2011
Here is the right code
pawn Код:
COMMAND:car(playerid, params[])
{
new string[128];
new vehicleid = GetVehicleModel(GetPlayerVehicleID(playerid));
if(!IsPlayerInAnyVehicle(playerid)) SendClientMessage(playerid,-1,"You are not in a vehicle !");
else
{
format(string, sizeof(string), "Your car model is %d", vehicleid);
SendClientMessage(playerid, COLOR_GREEN, string);
}
return 1;
}
Re: Car assign to variable -
GaudenasLT - 30.03.2011
I don't need this script...
Re: Car assign to variable -
xir - 30.03.2011
What do you need then?
Re: Car assign to variable -
antonio112 - 30.03.2011
I think he needs a private vehicle system ... which is a bit complicated to make one yourself. Why don`t you use one already made, you can find few in FilterScript forums.