/v - 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)
+--- Thread: /v (
/showthread.php?tid=346003)
/v -
thefatshizms - 27.05.2012
hello is there a tut or something or could someone tell me how to make a /v [model name] command i dont know how to do it so im just make 1 cmd for every car and its anoying
thanks in advanced
Re: /v -
MP2 - 27.05.2012
See the fsdebug filterscript in the SA:MP server package.
Re: /v -
TheDominator - 27.05.2012
Why not just use a dialog system like this:
https://sampforum.blast.hk/showthread.php?tid=97939
They're all categorized into their correct places depending on the type of vehicle they are.
Re: /v -
thefatshizms - 27.05.2012
Quote:
Originally Posted by TheDominator
|
because i like the cmd much better plus it will expand my knowledge more as just making a dialog version is sooo easy it can be done by a 10 year old lol
Re: /v -
Edward156 - 27.05.2012
Try this:
http://pastebin.com/f3YZK9uU
Re: /v -
Gangs_Rocks - 27.05.2012
Use PLEOMAX'S pvehicle include.
The code can be like this if you're using that include:
pawn Код:
CMD:v(playerid, params[])
{
new vname[20];
new cString[80];
if(IsPlayerInDM[playerid] == No)
{
if(!sscanf(params,"s[20]",vname))
{
if(!IsPlayerInAnyVehicle(playerid))
{
CreateVehicleForPlayer(playerid, vname, -1, -1, 1000.0);
format(cString,sizeof(cString), "You spawned a %s for yourself! " , vname);
SendClientMessage(playerid, SKYBLUE, cString);
}
else SendClientMessage(playerid, RED, "ERROR:Already in a vehicle");
}
else SendClientMessage(playerid,RED, "[USAGE]:/v [CARNAME/CARID] or /vehicle [CARNAME/CARID]");
}
else return SendClientMessage(playerid, RED, "Use /exitdm before using vehicle commands! ");
return 1;
}
Oh and sorry for the DM thing, kinda copied and pasted from my code.