help me - 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: help me (
/showthread.php?tid=269034)
help me -
sampfans - 14.07.2011
how to know the car virtual world ?
AddStaticVehicleEx(411,-4365.93212891,839.28680420,986.18029785,0.00000000 ,-1,-1,180); //Infernus
this car VW is ?
Re: help me -
Adil - 14.07.2011
pawn Код:
GetVehicleVirtualWorld(vehicleid);
Re: help me -
sampfans - 14.07.2011
give me one cmd
Re: help me -
Adil - 14.07.2011
pawn Код:
if(strcmp(string, "/mycarvw", true) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
GetVehicleVirtualWorld(GetPlayerVehicleID(playerid));
}
return 1;
}
Re: help me -
sampfans - 14.07.2011
30 minutes for that ? im already make it
pawn Код:
CMD:vehvw(playerid, params[])
{
if(IsPlayerInAnyVehicle(playerid))
{
new string[156];
new world;
world = GetVehicleVirtualWorld(GetPlayerVehicleID(playerid));
SetPlayerVirtualWorld(playerid, world);
format(string, sizeof(string), "This Vehicle VW is %d", world);
SendClientMessageEx(playerid, COLOR_YELLOW, string);
}
return 1;
}
Re: help me -
Toreno - 14.07.2011
He's helping to more than one people so have some respect, he eventually gave you a cmd so just say thank you and that's it.