/name cmd for admins
5 posters
Page 1 of 1
/name cmd for admins
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
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- Donator
- Posts : 224
Join date : 2011-02-25
Re: /name cmd for admins
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
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
- Posts : 331
Join date : 2011-01-06
Age : 32
Location : Italy
Re: /name cmd for admins
Here is a better idea, that lvl 2/3+ admins get a command like /changename? So they can change non-rp names...
Darko123- Vampire
- Posts : 235
Join date : 2010-12-25
Age : 27
Location : Croatia
Re: /name cmd for admins
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- In Game Administrator
- Posts : 1098
Join date : 2011-02-05
Age : 28
Location : Serbia
Re: /name cmd for admins
But they could ask them what name he wants...
Darko123- Vampire
- Posts : 235
Join date : 2010-12-25
Age : 27
Location : Croatia
Re: /name cmd for admins
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.
Similar topics
» Temporary Admins.
» Admins & Topics.
» All Admins please take a look here
» More Admins
» hire more admins
» Admins & Topics.
» All Admins please take a look here
» More Admins
» hire more admins
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum