noob alert - 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: noob alert (
/showthread.php?tid=65397)
noob alert -
My_Waffles_Bitch_L0L - 12.02.2009
how do i make a [NOOB ALERT] message if the name is etc. Rebel or the IP is a noob's IP? =p and return ban playerid ;d
Re: noob alert -
Lewwy - 12.02.2009
How can you get a noob ip?
Re: noob alert -
Born2die - 12.02.2009
A noob IP? I believe that you're high...
Re: noob alert -
Think - 12.02.2009
onplayerconnect(playerid)
{
SendClientMessageToAll(COLOR_RED, "[NOOB-ALERT] someone just joined");
ban(playerid);
return 1;
}
Lol
Re: noob alert -
LibertyWorld - 12.02.2009
Quote:
Originally Posted by Pandabeer1337
onplayerconnect(playerid)
{
SendClientMessageToAll(COLOR_RED, "[NOOB-ALERT] someone just joined");
ban(playerid);
return 1;
}
Lol
|
Lol, why would you want that + how would you get the noob IP?
Re: noob alert -
My_Waffles_Bitch_L0L - 12.02.2009
cant i just use name!.. o_O Xd
Re: noob alert -
wavefunction - 12.02.2009
I think he means that he wants alert if someone new shows up on server
Re: noob alert -
[RP]Rav - 12.02.2009
Код:
// in OnPlayerConnect
new playername[32],filename[36];
GetPlayerName(playerid, playername, 32);
format (filename, 36, "%s.ban", playername);
if (!fexist(filename))
{
// lame example, but it works
SendClientMessageToAll(COLOUR, "A new player has joined the server! Everybody laugh at him/her!");
}
Re: noob alert -
Mikep - 12.02.2009
That will show everytime.
Re: noob alert -
[RP]Rav - 12.02.2009
I copied it straight from another example, but ofcourse you'd need to adapt the filename bit to how your user files look