28.09.2015, 11:33
CMD(playerid,params[])
{
new ID;
if(IsPlayerAdmin(playerid) || Sav[Admin][playerid] > 0)
if(sscanf(params, "us[100]", ID)) return SCM(playerid,0xFF0000AA,"Error: /p ID");
SCM(ID,-1,"{FFFFFF} Welcome bla bla bla.....");
return 1;
}
If admin send cmd /p 0
so send to back Error: /p ID
{
new ID;
if(IsPlayerAdmin(playerid) || Sav[Admin][playerid] > 0)
if(sscanf(params, "us[100]", ID)) return SCM(playerid,0xFF0000AA,"Error: /p ID");
SCM(ID,-1,"{FFFFFF} Welcome bla bla bla.....");
return 1;
}
If admin send cmd /p 0
so send to back Error: /p ID