22.05.2014, 13:32
does this work?
Код:
CMD:kick(playerid, params[]) {
new targetid, reason[128];
if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, COLOR_HERE, "Usage: /kick [id] [reason]");
else if(!sscanf(params, "u", targetid)) {
//rest of code here
SendClientMessageToAll(COLOR_HERE, "BLABLABLA has been kicked <> Reason: No reason specified");
} else if(!sscanf(params, "us[128]", targetid, reason)) {
//rest of code here
SendClientMessageToAll(COLOR_HERE, "BLABLABLA has been kicked <> Reason: the reason here");
}
return 1;

