ifIsplayername
#9

Quote:
Originally Posted by lolumadd [cod5server.tk
]
pawn Код:
new Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, sizeof(Name));
if(strcmp(Name, "John", true) == 0)
{
SendClientMessage(playerid, COLOR, "Welcome John!");
}
else
{
SendClientMessage(playerid, COLOR, "Good-bye");
Kick(playerid);
}
Won't that kick other people whose name isnt John
Reply


Messages In This Thread
ifIsplayername - by patchkinson - 29.11.2009, 17:33
Re: ifIsplayername - by lolumadd - 29.11.2009, 17:36
Re: ifIsplayername - by patchkinson - 29.11.2009, 18:36
Re: ifIsplayername - by patchkinson - 29.11.2009, 18:38
Re: ifIsplayername - by lolumadd - 29.11.2009, 21:53
Re: ifIsplayername - by patchkinson - 29.11.2009, 22:01
Re: ifIsplayername - by Mike Garber - 04.12.2009, 14:34
Re: ifIsplayername - by Donny_k - 04.12.2009, 17:20
Re: ifIsplayername - by HydraX - 04.12.2009, 22:55
Re: ifIsplayername - by Gappy - 04.12.2009, 23:24

Forum Jump:


Users browsing this thread: 4 Guest(s)