SA-MP Forums Archive
Banned Connect Message - 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)
+--- Thread: Banned Connect Message (/showthread.php?tid=372630)



Banned Connect Message - kbalor - 27.08.2012

Where do I put this code below? Only if the player is banned from the server or when a player try to connect. This must be display.


pawn Код:
ShowPlayerDialog(playerid, D, DIALOG_STYLE_MSGBOX, "Notice", "You are currently banned from the server. Please post Unban Appeal in our forum blablablalah ", "Close", "");



Re: Banned Connect Message - lamarr007 - 27.08.2012

pawn Код:
public OnPlayerConnect(playerid)
{
    ShowPlayerDialog(playerid, D, DIALOG_STYLE_MSGBOX, "Notice", "You are currently banned from the server. Please post Unban Appeal in our forum blablablalah ", "Close", "");
    return 1;
}



Re: Banned Connect Message - kbalor - 27.08.2012

Quote:
Originally Posted by lamarr007
Посмотреть сообщение
pawn Код:
public OnPlayerConnect(playerid)
{
    ShowPlayerDialog(playerid, D, DIALOG_STYLE_MSGBOX, "Notice", "You are currently banned from the server. Please post Unban Appeal in our forum blablablalah ", "Close", "");
    return 1;
}
haha lol! that made me laugh


Re: Banned Connect Message - fiki574 - 27.08.2012

Quote:
Originally Posted by lamarr007
Посмотреть сообщение
pawn Код:
public OnPlayerConnect(playerid)
{
    ShowPlayerDialog(playerid, D, DIALOG_STYLE_MSGBOX, "Notice", "You are currently banned from the server. Please post Unban Appeal in our forum blablablalah ", "Close", "");
    return 1;
}
LOL, really?

pawn Код:
public OnPlayerConnect(playerid)
{
     if(IsPlayerBanned(playerid) == true)
     {
         ShowPlayerDialog(playerid, D, DIALOG_STYLE_MSGBOX, "Notice", "You are currently banned from the server. Please post Unban Appeal in our forum blablablalah ", "Close", "");
     }
     else
     {
         SendClientMessage(playerid,-1,"Welcome to my server");
     }
     return 1;
}
pawn Код:
stock bool:IsPlayerBanned(playerid)
{
     //code ban check, "return true" if player banned, "return false" if player not banned
}



Re: Banned Connect Message - lamarr007 - 27.08.2012

Quote:
Originally Posted by fiki574_CRO
Посмотреть сообщение
LOL, really?

pawn Код:
public OnPlayerConnect(playerid)
{
     if(IsPlayerBanned(playerid) == true)
     {
         ShowPlayerDialog(playerid, D, DIALOG_STYLE_MSGBOX, "Notice", "You are currently banned from the server. Please post Unban Appeal in our forum blablablalah ", "Close", "");
     }
     else
     {
         SendClientMessage(playerid,-1,"Welcome to my server");
     }
     return 1;
}
pawn Код:
stock bool:IsPlayerBanned(playerid)
{
     //code ban check, "return true" if player banned, "return false" if player not banned
}
Really hard code bro


Re: Banned Connect Message - kbalor - 27.08.2012

Quote:
Originally Posted by fiki574_CRO
Посмотреть сообщение
LOL, really?

pawn Код:
public OnPlayerConnect(playerid)
{
     if(IsPlayerBanned(playerid) == true)
     {
         ShowPlayerDialog(playerid, D, DIALOG_STYLE_MSGBOX, "Notice", "You are currently banned from the server. Please post Unban Appeal in our forum blablablalah ", "Close", "");
     }
     else
     {
         SendClientMessage(playerid,-1,"Welcome to my server");
     }
     return 1;
}
pawn Код:
stock bool:IsPlayerBanned(playerid)
{
     //code ban check, "return true" if player banned, "return false" if player not banned
}
Omg thanks bro! But where do I get the stock? i'm using luxadmin..


Re: Banned Connect Message - fiki574 - 27.08.2012

Quote:
Originally Posted by kbalor
Посмотреть сообщение
Omg thanks bro! But where do I get the stock? i'm using luxadmin..
You do stock by yourself!

And no problem!


Re: Banned Connect Message - kbalor - 27.08.2012

Quote:
Originally Posted by fiki574_CRO
Посмотреть сообщение
You do stock by yourself!

And no problem!
Waitttt man! Hold on! I mean... What should I do inside with the stock you've given me, What to do inside? I really don't have any Idea. Could you help me for the second time? Else you leave me no choice but to use lamarr007 code


OMG!!
pawn Код:
public OnPlayerConnect(playerid)
{
    ShowPlayerDialog(playerid, D, DIALOG_STYLE_MSGBOX, "Notice", "You are currently banned from the server. Please post Unban Appeal in our forum blablablalah ", "Close", "");
    return 1;
}

pawn Код:
stock bool:IsPlayerBanned(playerid)
{
     //code ban check, "return true" if player banned, "return false" if player not banned
}
Код:
warning 208: function with tag result used before definition, forcing reparse
warning 209: function "IsPlayerBanned" should return a value
warning 203: symbol is never used: "playerid"