Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if ( cmd == "report" )
- {
- if ( !text ) ePrivMessage( "[Error] - Usage /c report <player> <reason>", player );
- else
- {
- local reason = GetTok( text, " ", 2, NumTok( text, " " ) );
- if ( !reason ) ePrivMessage( "[Error] - Usage /c report <player> <reason>", player );
- else
- {
- local plr = GetPlayer( GetTok( text, " ", 1 ) );
- if ( !plr ) ePrivMessage( "[Error] - Invalid Nick/ID.", player );
- else if ( plr.ID == player.ID ) ePrivMessage( "[Error] - You cant /c report yourself.", player );
- else
- {
- local a = 0;
- while ( a < GetMaxPlayers() )
- {
- local admins = FindPlayer( a );
- if ( admins )
- {
- local lvl = GetLevel( admins );
- if ( lvl >= 3 )
- {
- PrivMessage(player +" has reported Player:[ "+ plr +" ] Reason:[ "+ reason +" ]",admins);
- StaffMessage(player +" has reported Player: "+ plr +" Reason: "+ reason );
- }
- }
- a ++;
- }
- ePrivMessage("[Report] - The report has been sent to online staff, thanks for reporting.", player);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement