Dont show admins connecting
#2

thats should work.

PHP код:
public OnPlayerConnect(playerid)
{
    
// Always allow NPC's to login without password or account
    
if (IsPlayerNPC(playerid))
        return 
1;
     
players_connected++;
     
TextDrawShowForPlayer(playerid,Textdraw0);
     
VisableDuty[playerid] = 0;
     
SendClientMessage(playerid, -1"{FFFF00}Try Out The New Classes: {B88A00}Paramedic {F06695}Farmer {33CCFF}Sailor {00FFFF}Train Driver, {CCFF33}Taxi Driver");
     
SendClientMessage(playerid, -1"{FFFF00}Want To No About The Server Type {00ff00}/Info or {FF0000}/Changelog");
     
SendClientMessage(playerid, -1"{FFFF00}Admins Should use {ff0000}/achangelog {FFFF00} To see what has changed for them");
     
RemoveBuildingForPlayer(playerid82290.00.00.06000.0);
     
RemoveBuildingForPlayer(playerid110140.00.00.06000.0);
     
RemoveBuildingForPlayer(playerid113720.00.00.06000.0);
    
///////////////////montgomary garage...////////////
     
RemoveBuildingForPlayer(playerid134401282.2422369.140628.75780.25);
     
RemoveBuildingForPlayer(playerid13081334.4531474.093819.23440.25);
     
RemoveBuildingForPlayer(playerid13081280.1719485.953119.24220.25);
     
RemoveBuildingForPlayer(playerid13081370.5156457.476619.14060.25);
    
/////////////////end//////////////////////////////
    // Setup local variables
    
new Name[MAX_PLAYER_NAME], NewPlayerMsg[128], HouseID;
    
// Setup a PVar to allow cross-script money-transfers (only from filterscript to this mainscript) and scorepoints
    
SetPVarInt(playerid"PVarMoney"0);
    
SetPVarInt(playerid"PVarScore"0);
    
// Get the playername
    
GetPlayerName(playeridNamesizeof(Name));
    
// Also store this name for the player
    
GetPlayerName(playeridAPlayerData[playerid][PlayerName], 24);
    
// Send a message to all players to let them know somebody else joined the server
    
if(APlayerData[playerid][PlayerLevel] == 0)
    {
        
format(NewPlayerMsg128TXT_PlayerJoinedServerNameplayerid);
        
SendClientMessageToAll(0xFFFFFFFFNewPlayerMsg);
    }
    
// Try to load the player's datafile ("PlayerFile_Load" returns "1" is the file has been read, "0" when the file cannot be read)
    
if (PlayerFile_Load(playerid) == 1)
    {
        
// Check if the player is still banned
        
if (APlayerData[playerid][BanTime] < gettime()) // Player ban-time is passed
            
ShowPlayerDialog(playeridDialogLoginDIALOG_STYLE_INPUTTXT_DialogLoginTitleTXT_DialogLoginMsgTXT_DialogLoginButton1TXT_DialogButtonCancel);
        else 
// Player is still banned
        
{
            
ShowRemainingBanTime(playerid); // Show the remaining ban-time to the player is days, hours, minutes, seconds
            
Kick(playerid); // Kick the player
        
}
    }
    else
        
ShowPlayerDialog(playeridDialogRegisterDIALOG_STYLE_INPUTTXT_DialogRegisterTitleTXT_DialogRegisterMsgTXT_DialogRegisterButton1TXT_DialogButtonCancel);
    
// The houses have been loaded but not the cars, so load all vehicles assigned to the player's houses
    
for (new HouseSlotHouseSlot MAX_HOUSESPERPLAYERHouseSlot++)
    {
        
// Get the HouseID from this slot
        
HouseID APlayerData[playerid][Houses][HouseSlot];
        
// Check if there is a house in this slot
        
if (HouseID != 0)
            
HouseFile_Load(HouseIDtrue); // Load the cars of the house
    
}
    
// Speedometer setup
    
Speedometer_Setup(playerid);
    
// MissionText TextDraw setup
    
APlayerData[playerid][MissionText] = TextDrawCreate(320.0430.0" "); // Setup the missiontext at the bottom of the screen
    
TextDrawAlignment(APlayerData[playerid][MissionText], 2); // Align the missiontext to the center
    
TextDrawUseBox(APlayerData[playerid][MissionText], 1); // Set the missiontext to display inside a box
    
TextDrawBoxColor(APlayerData[playerid][MissionText], 0x00000066); // Set the box color of the missiontext
    // Display a message if the player hasn't accepted the rules yet
    
if (APlayerData[playerid][RulesRead] == false)
        
SendClientMessage(playerid0xFFFFFFFF"{FF0000}You haven't accepted the {FFFF00}/rules{FF0000} yet");
    return 
1;

Reply


Messages In This Thread
Dont show admins connecting - by [LHT]Bally - 24.01.2013, 20:28
Re: Dont show admins connecting - by kepa333 - 24.01.2013, 20:37
Re: Dont show admins connecting - by [LHT]Bally - 24.01.2013, 20:48
Re: Dont show admins connecting - by Sime30 - 24.01.2013, 22:07
Re: Dont show admins connecting - by [LHT]Bally - 25.01.2013, 00:06
Re: Dont show admins connecting - by Scenario - 25.01.2013, 00:39

Forum Jump:


Users browsing this thread: 2 Guest(s)