29.04.2011, 11:19
i see, however, i have tried to compile with peoples suggestions, and it occured to me, i use DCMD and DINI, so all my commands are CMD: report etc.... i just cand figure this one out :L
ill copy my report command and see if you can help? thanks so much in advance!
CMD:report(playerid, params[])
{
new str[50];
if(sscanf(params, "s[50]", str)== 0) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /report [text]");
SendClientMessage(playerid, COLOR_YELLOW, "Your report has been sent to any online admins.");
for(new i=0; i<MAX_PLAYERS; i++)
{
if(GetAdminLevel(i)>= 1 || IsPlayerAdmin(i))
{
format(str, sizeof(str), "[REPORT] %s: %s", GetPName(playerid), params);
SendClientMessage(i, COLOR_REPORT, str);
}
}
return 1;
}
PS: if you think this is abit advance, i had a friend help/script this for me lol
ill copy my report command and see if you can help? thanks so much in advance!

CMD:report(playerid, params[])
{
new str[50];
if(sscanf(params, "s[50]", str)== 0) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /report [text]");
SendClientMessage(playerid, COLOR_YELLOW, "Your report has been sent to any online admins.");
for(new i=0; i<MAX_PLAYERS; i++)
{
if(GetAdminLevel(i)>= 1 || IsPlayerAdmin(i))
{
format(str, sizeof(str), "[REPORT] %s: %s", GetPName(playerid), params);
SendClientMessage(i, COLOR_REPORT, str);
}
}
return 1;
}
PS: if you think this is abit advance, i had a friend help/script this for me lol
