noob alert
#1

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
Reply
#2

How can you get a noob ip?
Reply
#3

A noob IP? I believe that you're high...
Reply
#4

onplayerconnect(playerid)
{
SendClientMessageToAll(COLOR_RED, "[NOOB-ALERT] someone just joined");
ban(playerid);
return 1;
}

Lol
Reply
#5

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?
Reply
#6

cant i just use name!.. o_O Xd
Reply
#7

I think he means that he wants alert if someone new shows up on server
Reply
#8

Код:
// 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!");
}
Reply
#9

That will show everytime.
Reply
#10

I copied it straight from another example, but ofcourse you'd need to adapt the filename bit to how your user files look
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)