SA-MP Forums Archive
Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help (/showthread.php?tid=254529)



Help - wheelman_WM - 11.05.2011

Hey i want help me

i want that when anyone connects if his name is "jasa" will get ban,

For Example
Jasa has joined the server.

Jasa has been banned from the server (name banned)


Re: Help - Seven_of_Nine - 11.05.2011

pawn Код:
//onplayerconnect
new name[30];
GetPlayerName(playerid,name,sizeof(name));
if(strfind(name,"jasa",true)) {
return BanEx(playerid,"Banned Name.");
}
//Xpand it with ur message.