How to create ? Help please
#1

I want to make this for a player that can not use the nickname [ADMINISTRATOR]
pawn Код:
if (strfind (playername, "_", true) == -1)
{
SendClientMessageEx (playerid, COLOR_LIGHTBLUE, "Connection refused. Enter the name in the correct format Example: Joko_Widodo");
}
if (strfind (playername, "[ADMINISTRATOR]", true) == -1)
{
SendClientMessageEx (playerid, COLOR_LIGHTBLUE, "Connection refused. Because you are not admin!");
}
is this true?
sorry for my bad english
Reply
#2

https://sampwiki.blast.hk/wiki/Strfind
Function returns -1 when it's not found.

You need something like that, maybe:
Код:
if(strfind(playername, "[ADMINISTRATOR]", true) != -1)
{
    SendClientMessage(playerid, -1, "Connection refused. Because you are not admin!");
}
Reply
#3

Use this:
PHP код:
if(strcmp(playername"[ADMINISTRATOR], true,15)==0)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "
Connection refusedBecause you are not admin!");
}
if(strcmp(playername, "
_", true,1)==0)
{
SendClientMessage (playerid, COLOR_LIGHTBLUE, "
Connection refusedEnter the name in the correct format ExampleJoko_Widodo");

Reply
#4

no , i wont to create if player login use nick [ADMINISTRATOR] in nick , he could no entry except admin
Reply
#5

Is this use ?
pawn Код:
if (PlayerInfo[playerid][pAdmin] >= 1)
Reply
#6

yes, it is
Reply
#7

No, I can not make the script, so every player who register using the nick [ADMINISTRATOR] He will come out (except admin)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)