01.03.2015, 19:44
i dont test this but Abagail methode is the best ^^
PHP код:
CMD:cmd1(playerid, params[])
{
new targetid;
if(sscanf(params,"i", targetid)) return SendClientMessage(playerid, -1,"USAGE: /cmd1 [targetid] ");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, -1,"ERROR: Invalid targetid.");
cmd_cmd2(targetid, params);
return 1;
}
CMD:cmd2(playerid, params[])
{
....
}