17.05.2012, 17:23
Well i am trying to make it so when you type /add it will give you a list of options you could put it so like for example
/add Nos - Nos would be added to the car
/add Hyrdolics - Hyrdolics would be added to the car
How would i make this be in one command
Thanks
/add Nos - Nos would be added to the car
/add Hyrdolics - Hyrdolics would be added to the car
How would i make this be in one command
pawn Код:
CMD:add(playerid, params[])
{
new string[64],
option[4],
Nos[4],
Hyrodolics[5],
Spolier[5],
SideSkirts[12],
Exaust[5];
sscanf(params, "s", option);
if (isnull(option))
{
SendClientMessage(playerid, COLOR_WHITE, " USAGE: /add [option]");
SendClientMessage(playerid, COLOR_WHITE, " OPTIONS: Nos, Hyrodolics, Spoiler, SideSkirt,Exaust");
return 1;
}
if (option(Nos))
{
SendClientMessage(playerid, 0x0000BBAA, "Hey");
}
if (option = Hyrodolics)
{
// Code for the drugs...
}
if (option = Spolier)
{
// Code for the money...
}
return 1;
}
Thanks