Need help with this cmd
#1

when someone use report that this report everyone can see i want it to only see admins can someone fix this cmd i will give him repution

CMD:report(playerid, params[]) {
new id;
new reason[128];
if(sscanf(params, "us[128]", id, reason)) return SendClientMessage(playerid, COLOR_ORANGE, "[SERVER] - USAGE: /report [ID] [REASON]");
new string[150], sender[MAX_PLAYER_NAME], receiver[MAX_PLAYER_NAME];
GetPlayerName(playerid, sender, sizeof(sender));
GetPlayerName(id, receiver, sizeof(receiver));
format(string, sizeof(string), "[ADMIN] - %s(%d) has reported %s(%d)", sender, playerid, receiver, id);
SendMessageToAdmins(string);
format(string, sizeof(string), "[ADMIN] - Reason: %s", reason);
SendMessageToAdmins(string);
SendClientMessage(playerid, COLOR_ORANGE, "Your report has been sent.");
return 1;
}
Reply


Messages In This Thread
Need help with this cmd - by Leopards - 26.12.2015, 19:28
Re: Need help with this cmd - by KillerDVX - 26.12.2015, 19:35
Re: Need help with this cmd - by xXRevolverXx - 26.12.2015, 19:37
Re: Need help with this cmd - by saffierr - 26.12.2015, 19:37
Re: Need help with this cmd - by SaltySandy - 26.12.2015, 19:39
Re: Need help with this cmd - by Leopards - 26.12.2015, 19:50
Re: Need help with this cmd - by KillerDVX - 26.12.2015, 19:58
Re: Need help with this cmd - by Leopards - 26.12.2015, 20:18
Re: Need help with this cmd - by SaltySandy - 26.12.2015, 20:21
Re: Need help with this cmd - by Leopards - 26.12.2015, 20:22

Forum Jump:


Users browsing this thread: 1 Guest(s)