27.08.2012, 17:28
Quote:
pawn Код:
|
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
}