23.12.2012, 02:43
i need help so if you type a command for ex like /vehname with no vehicle name it sends you a message "Put in the vehicle name you want. can someone show me how do that it would be wonderful thanks
COMMAND:/vehname(playerid,params[])
{
new Target; //defines the playerid we wanna freeze
if(sscanf(params, "u", Target)) SendClientMessage(playerid, COLOR_LIGHTBLUE, "USAGE: /vehname [vehname]"); //tell sscanf again if the parameters/syntax is wrong to return a special message
}
if(strcmp("/vehname", cmd, true) == 0)
{
tmp = strtok(cmdtext,idx);
if(!strlen(tmp))
{
return SendClientMessage(playerid,COLOR_LIGHTRED,"USAGE: /kick [id] [reason]");
}
}