Scripting question
#3

Quote:
Originally Posted by Mariciuc223
Посмотреть сообщение
Код:
// in your command

new Name[32];
GetPlayerName(playerid, Name, sizeof(Name));

if(!strcmp(Name, "YourNameThere", true)) // Check if player name it's 'YourNameThere' - The name can be too 'YOURnameTHere' ...
{
    // Rest of the command there
}
else return SendClientMessage(playerid, -1, "Only 'YourNameThere' can use that command.");
So I put this in the OnPlayerCommand ?
Reply


Messages In This Thread
Scripting question - by brandypol - 19.08.2015, 18:27
Re: Scripting question - by Mariciuc223 - 19.08.2015, 18:50
Re: Scripting question - by brandypol - 19.08.2015, 18:52
Re: Scripting question - by jlalt - 19.08.2015, 18:55
Re: Scripting question - by Mariciuc223 - 19.08.2015, 18:57
Re: Scripting question - by brandypol - 19.08.2015, 21:20
Re: Scripting question - by nezo2001 - 19.08.2015, 21:34

Forum Jump:


Users browsing this thread: 1 Guest(s)