#1

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
Reply
#2

anyone? really need to know and i know its pretty simple
Reply
#3

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
Reply
#4

not that easy because it has to get the price the mechanic has offered him thanks tho mate
Reply
#5

really really need it, anyone?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)