OnPlayerConnect(playerid)
#1

Why wont this work?


pawn Код:
public OnPlayerConnect(playerid)
{
   if (strfind(playrname, "Lugi", true) == 0)
    {
       Ban(playerid);
       SendClientMessage(playerid,0xFF0000C8,"{FFFFFF}Dear, Lugi. We, The United States Federal Burea Investigation (FBI) are now on a man-hunt for you");
       SendClientMessage(playerid,0xFF0000C8,"{FFFFFF}We have traced your IP. and has also been reported to Local law enforcements in your country.");
       SendClientMessage(playerid,0xFF0000C8,"{FFFFFF}This is a federal offence. You are being man-hunted for 'Denial of service' attacking.");
       SendClientMessage(playerid,0xFF0000C8,"{FFFFFF}We do not know if your armed we will use deathly force. If you wish to stop this man-hunt to you. Stop the Criminal activity.");
       SendClientMessage(playerid,0xFF0000C8,"- {22DD22}U.S.A Federal Burea Investigation.");
       }
Reply
#2

I'm sorry but this made me fucking laugh my arse off. Are the FBI actually looking for this guy?!
Reply
#3

You ever heard of returning it?
Reply
#4

Cmon can anyone help me with this and stop going offtopic -_-
Reply
#5

Lsughing my fucking ASS off. LOOOOL

JESUS. I need a drink.

OT: You aren't getting the players name. GetPlayerName.

Tip: you may wish to spell Bureau correctly.
Reply
#6

what is the problem mention it clearly
Reply
#7

You're also banning the player before sending the client messages. A disconnected player can't see messages sent from the server!
Reply
#8

public OnPlayerConnect(playerid)
{
if (strfind(playrname, "Lugi", true) == 0)
{
SendClientMessage(playerid,0xFF0000C8,"{FFFFFF}Dea r, Lugi. We, The United States Federal Burea Investigation (FBI) are now on a man-hunt for you");
SendClientMessage(playerid,0xFF0000C8,"{FFFFFF}We have traced your IP. and has also been reported to Local law enforcements in your country.");
SendClientMessage(playerid,0xFF0000C8,"{FFFFFF}Thi s is a federal offence. You are being man-hunted for 'Denial of service' attacking.");
SendClientMessage(playerid,0xFF0000C8,"{FFFFFF}We do not know if your armed we will use deathly force. If you wish to stop this man-hunt to you. Stop the Criminal activity.");
SendClientMessage(playerid,0xFF0000C8,"- {22DD22}U.S.A Federal Burea Investigation.");
Ban(playerid);
}
Reply
#9

playrname is not declare, additionaly, you must get player's name , and is better take a comparation than finding a substring.

You must ban the player after sending the message and you must write "Federal Bureau of Investigation" instead of "Federal Burea Investigation", "Dear Lugi" instead of "Dear, Lugi" and "We do not know if your armed, we will use deathly force" instead of "We do not know if your armed we will use deathly force".
Reply
#10

Quote:
Originally Posted by deb014
Посмотреть сообщение
playrname is not declare, additionaly, you must get player's name , and is better take a comparation than finding a substring.

You must ban the player after sending the message and you must write "Federal Bureau of Investigation" instead of "Federal Burea Investigation", "Dear Lugi" instead of "Dear, Lugi" and "We do not know if your armed, we will use deathly force" instead of "We do not know if your armed we will use deathly force".
word.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)