Command help! Easy for pro's!
#10

Quote:
Originally Posted by Kidel
Код:
GetPlayerName(playerid, Name, sizeof(Name));
f(strcmp( Name, "your name"))
{
you command code
}
put this on your command!!!

not tested!!!
It helped a bit, but I really don't know how to add more names, and either not how to make it in OnPlayerCommand.
[/quote]
pawn Код:
new PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
if(!strfind(PlayerName, "[your name here]", true) return 0;
if(strfind(PlayerName, "[your name here]", true)
{
    Command Code here
    return 1;
}
Try this
Reply


Messages In This Thread
Command help! Easy for pro's! - by Kidel - 24.06.2010, 17:37
Re: Command help! Easy for pro's! - by Kidel - 24.06.2010, 17:45
Re: Command help! Easy for pro's! - by Kidel - 24.06.2010, 17:51
Re: Command help! Easy for pro's! - by billiout - 24.06.2010, 17:58
Re: Command help! Easy for pro's! - by MastahServers - 24.06.2010, 18:00
Re: Command help! Easy for pro's! - by Kidel - 24.06.2010, 18:02
Re: Command help! Easy for pro's! - by Kidel - 24.06.2010, 18:03
Re: Command help! Easy for pro's! - by billiout - 24.06.2010, 18:05
Re: Command help! Easy for pro's! - by Kidel - 24.06.2010, 18:07
Re: Command help! Easy for pro's! - by MastahServers - 24.06.2010, 18:09

Forum Jump:


Users browsing this thread: 3 Guest(s)