VH:RP Forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

/name cmd for admins

5 posters

Go down

/name cmd for admins Empty /name cmd for admins

Post by Kyol Daniels Thu Mar 24, 2011 11:10 pm

A /name cmd that kicks people for having nonrp names.
Will save admins time so they dont have to
/kick [id] Nonrp name.

Instead they can do /name [id]
and it will kick them with a message - "Nonrp name, Get a name like Paul_Smith

Code:

   if(strcmp(cmd, "/name", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
          tmp = strtok(cmdtext, idx);
         if(!strlen(tmp))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /name [playerid/PartOfName]");
            return 1;
         }
         giveplayerid = ReturnUser(tmp);
         if (PlayerInfo[playerid][pAdmin] >= 1)
         {
            if(IsPlayerConnected(giveplayerid))
            {
                if(giveplayerid != INVALID_PLAYER_ID)
                {
                    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                  GetPlayerName(playerid, sendername, sizeof(sendername));
                  format(string, sizeof(string), " * %s has been kicked by %s Reason:Nonrp name, Get an RP name EX: Paul_Smith", giveplayer, sendername);
                  SendAdminMessage(COLOR_YELLOW, string);
                  AdminLog(string);
                  format(string, sizeof(string), "  * %s has been kicked by %s Reason:Nonrp name, Get an RP name EX: Paul_Smith", giveplayer, sendername);
                  SendClientMessage(giveplayerid, COLOR_LIGHTRED, string);
                    Kick(giveplayerid);
                }
            }
         }
         else
         {
            format(string, sizeof(string), "  %d is not an active player.", giveplayerid);
            SendClientMessage(playerid, COLOR_GRAD1, string);
         }
      }
      return 1;
   }
Kyol Daniels
Kyol Daniels
Donator
Donator

Posts : 224
Join date : 2011-02-25

Back to top Go down

/name cmd for admins Empty Re: /name cmd for admins

Post by Midnight Fri Mar 25, 2011 12:28 am

Would be usefull or useless...

Usefull to save time
Useless because we admisn get a infrmation like "[SERVER]: Mickey Mouse is registering a new account" and we're full of time to /kick Mickey_Mouse NON-RP name

Midnight
Killer
Killer

Posts : 331
Join date : 2011-01-06
Age : 32
Location : Italy

Back to top Go down

/name cmd for admins Empty Re: /name cmd for admins

Post by Darko123 Fri Mar 25, 2011 8:15 am

Here is a better idea, that lvl 2/3+ admins get a command like /changename? So they can change non-rp names...
Darko123
Darko123
Vampire
Vampire

Posts : 235
Join date : 2010-12-25
Age : 27
Location : Croatia

Back to top Go down

/name cmd for admins Empty Re: /name cmd for admins

Post by Nicolas Djordjevic Fri Mar 25, 2011 4:54 pm

Darko123 wrote:Here is a better idea, that lvl 2/3+ admins get a command like /changename? So they can change non-rp names...

No.

Someone doesn't wants to have character named "Tom_Johnson", for e.g.
Nicolas Djordjevic
Nicolas Djordjevic
In Game Administrator
In Game Administrator

Posts : 1098
Join date : 2011-02-05
Age : 28
Location : Serbia

Back to top Go down

/name cmd for admins Empty Re: /name cmd for admins

Post by Darko123 Fri Mar 25, 2011 6:40 pm

But they could ask them what name he wants...
Darko123
Darko123
Vampire
Vampire

Posts : 235
Join date : 2010-12-25
Age : 27
Location : Croatia

Back to top Go down

/name cmd for admins Empty Re: /name cmd for admins

Post by Chris_Bell Fri Mar 25, 2011 10:31 pm

If they log in with a non RP name, they obviously can't Rp, or don't want to. We are fine with the system we have now.
Chris_Bell
Chris_Bell
Donator
Donator

Personal Text : I am Sean Bell from the new VHWRP Server(7/14/13)
Posts : 483
Join date : 2010-12-23
Age : 26
Location : PA,USA

http://Used to own roflcookies.com

Back to top Go down

/name cmd for admins Empty Re: /name cmd for admins

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum