[HELP]/v [name] - 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]/v [name] (
/showthread.php?tid=266790)
[HELP]/v [name] -
Horrible - 06.07.2011
sorry for being annoying but i still have problem

this code allow u to spawn vehicle
BUT u must know the the number id of vehicle
Код:
CMD:v(playerid, params[])
{
new carId, Float:x, Float:y, Float:z;
if(GetPVarInt(playerid, "inStunt") != 1) return SendClientMessage(playerid, -1, ""#COL_RED"[ERROR]Command Ini Hanya Berlaku Di /stunt!");
if(sscanf(params, "i", carId)) return SendClientMessage(playerid, -1, "Usage: /v carId");
if(carId < 400 || carId > 611) return SendClientMessage(playerid, -1, "Invalid car Id, (400 - 611)");
GetPlayerPos(playerid, x, y, z);
Pveh[playerid] = CreateVehicle(carId, x, y + 5, z, 0,-1, -1, -1);
SetVehicleVirtualWorld(Pveh[playerid], 12); // I changed this line
SendClientMessage(playerid, -1, "Car spawned at your location!");
return 1;
}
i need is like this when u type /v turismo it spawn turismo (all vehicle )
and when u type /v turi it spawn turismo too(when someone not type complete vehicle name it rever to the near vehicle name)
please help
Re: [HELP]/v [name] -
Wesley221 - 06.07.2011
http://pastebin.com/f63f7295a
There you go
Re: [HELP]/v [name] -
Horrible - 06.07.2011
Quote:
Originally Posted by Wesley221
|
not like that
please help
Re: [HELP]/v [name] -
PrawkC - 06.07.2011
Wesley gave you the right answer ...
Re: [HELP]/v [name] -
Horrible - 06.07.2011
Quote:
Originally Posted by PrawkC
Wesley gave you the right answer ...
|
but it is a filterscript
i need on my GM
TY sorry for be annoying
Re: [HELP]/v [name] -
SmileyForCheat - 06.07.2011
Maybe you mean
http://pastebin.com/2g95mHY1
Re: [HELP]/v [name] -
Wesley221 - 06.07.2011
Just add the parts to your GM, no need to use it as an filterscript
Re: [HELP]/v [name] - Deskoft - 06.07.2011
https://sampforum.blast.hk/showthread.php?tid=259166
Re: [HELP]/v [name] -
Horrible - 07.07.2011
Quote:
Originally Posted by Wesley221
Just add the parts to your GM, no need to use it as an filterscript
|
can u help me to make it
then i just copying what u create
Re: [HELP]/v [name] -
Horrible - 07.07.2011
anyone can help??
please......