Banned Connect Message
#1

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", "");
Reply
#2

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;
}
Reply
#3

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

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
}
Reply
#5

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

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

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!
Reply
#8

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"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)