ZCMD Help
#7

Quote:
Originally Posted by The Toni
Посмотреть сообщение
I suggest you use strcmp, over strfind.

It's quite easier.
pawn Код:
new pName[24];
GetPlayerName(playerid, pName, 24);
if(!strcmp(pName, "<Name>", true)) return SendClientMessage(playerid, 0xFFFFFFFF, "ERROR: You are not authorized to do this command!");
{
     //This means their name is correct and matching the specified name.
}
return 1;
Edit:

If you look at iggy's code it has the full command.
I have, But if Im Named "Billy_Macan" and I do /open I get the not authorised message. If I'm "Bilyl_Macan3" It opens the Gate.
Reply


Messages In This Thread
ZCMD Help - by [UG]Scripter - 22.11.2010, 23:34
Re: ZCMD Help - by TheXIII - 22.11.2010, 23:37
Re: ZCMD Help - by iggy1 - 22.11.2010, 23:38
Re: ZCMD Help - by TheXIII - 22.11.2010, 23:39
Re: ZCMD Help - by [UG]Scripter - 23.11.2010, 00:25
Re: ZCMD Help - by Toni - 23.11.2010, 00:32
Re: ZCMD Help - by [UG]Scripter - 23.11.2010, 00:36
Re: ZCMD Help - by cessil - 23.11.2010, 00:38
Re: ZCMD Help - by [UG]Scripter - 23.11.2010, 00:45
Re: ZCMD Help - by TheXIII - 23.11.2010, 00:46
Re: ZCMD Help - by cessil - 23.11.2010, 00:53
Re: ZCMD Help - by Toni - 23.11.2010, 00:54
Re: ZCMD Help - by TheXIII - 23.11.2010, 01:11

Forum Jump:


Users browsing this thread: 4 Guest(s)