Helpp - 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: Helpp (
/showthread.php?tid=392708)
Helpp -
MatZZPL - 15.11.2012
Hi, could anyone explain to me how to create a command with a /accept respond, for example /fixcar and /accept mechanic
would really appreciate it if someone could help been trying to do it for few days

if you want to just create it, i will learn from it anyway look here --->
https://sampforum.blast.hk/showthread.php?tid=187229&page=306
++rep for anyhelp
Re: Helpp -
MatZZPL - 15.11.2012
anyone? really need to know and i know its pretty simple
Re: Helpp -
Nirzor - 15.11.2012
first you need to make some variables
suppose
new mechanic[MAX_PLAYERS];
then in onplayerconnect give
mechanic[playerid] = 0;
then on the cmd CMD:Fix ifisplayerinrangeofpoint(cords) then mechanic[playerid] = 1;
and on /acceptm i placed m for mechanic then GetPlayerName those things variables and if (mechanic[playerid] == 1)
then set the vehicle by targeting with the sscanf tool and your done with your system
Re: Helpp -
MatZZPL - 15.11.2012
not that easy because it has to get the price the mechanic has offered him

thanks tho mate
Re: Helpp -
MatZZPL - 15.11.2012
really really need it, anyone?