05.08.2014, 06:31
Why Does It Shows This Message In The Server Console When The Player Connects And I Have The Latest SAMP Version?
Onplayerconnect codes:
Help Please.
Onplayerconnect codes:
pawn Code:
public OnPlayerConnect(playerid)
{
new string[64], pName2[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName2,MAX_PLAYER_NAME);
format(string,sizeof string,"%s (%d) Has Joined The Server.",pName2,playerid);
GameTextForPlayer(playerid, "Welcome To The Los Santos Gang War Server", 5000, 4);
ShowPlayerDialog(playerid, DIALOG_RULES2, DIALOG_STYLE_MSGBOX, "Server Rules", "1- No Cheating\n2- No Spamming\n3- Slide Bug Is Not Allowed But C Bug Is Allowed\n4- No Rule Breaking\n5- No G Abuse\n6- No Advertising\n7- Teleport Abuse Is Not Allowed\n8- Weapon Mods Are Allowed Only\n9- Respect Player Especially Admins\n10- Scamming Is Not Allowed\n11- Aimbot Is Not Allowed\n12- Don't Try To Climb Up Over The Freeroam Walls If You Are(not) In Freeroam Mod\n\nDo You Agree The Server Rules?", "Yes", "No");
SetPlayerColor(playerid, 0xB0B0B0FF);
SendClientMessageToAll(0xAFAFAFAA,string);
SendClientMessage(playerid,-1,"Welcome To The {FFEA00}LOS SANTOS GANG WARS{FFFFFF} Version 5.2! Please Enjoy Your Stay.");
SendClientMessage(playerid,-1,"/credits Command Has Been Added, To See Our Updates, Type /updates, And We Have Added A Headshot System, And Added 1 New Song!");
SendClientMessage(playerid, 0x00EEFFFF, "Please Visit Our Forums: lsgangwars.createaforum.com");
SendClientMessage(playerid, 0x00FF22FF, "When You Spawn A Skin Type /help To See The Help Menu.");
PlayerInfo[playerid][pAdmin] = 0;
PlayerInfo[playerid][pKills] = 0;
PlayerInfo[playerid][pDeaths] = 0;
LPinfo[playerid][Drugs] = 0;
LPinfo[playerid][Adre] = 0;
Info[playerid][VIPLevel] = 0;
Info[playerid][Favouriteskin] = -1;
BankMoney[playerid] = 0;
Daysalive[playerid] = 0;
Info[playerid][MissionsCompleted] = 0;
Info[playerid][MissionsFailed] = 0;
Info[playerid][Robbed] = 0;
Info[playerid][MaximumRobbed] = 0;
Info[playerid][Muted] = 0;
Info[playerid][Jailed] = 0;
Info[playerid][MuteWarnings] = 0;
Info[playerid][MaxMuteWarnings] = 0;
Info[playerid][Warnings] = 0;
Info[playerid][TimesKicked] = 0;
Info[playerid][EventsWon] = 0;
Info[playerid][EventsLost] = 0;
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "UserLoad_%s", .bExtra = true, .extra = playerid); // the same thing
if(Info[playerid][Banned] == 1)
{
KickCommandWithMessage(playerid, 0xFF0000AA, "You Are Banned From This Server!");
SendClientMessage(playerid, 0xFFC400AA, "If You Feel That You Are Wrongly Banned Feel Free To Post An Appeal In Forum: lsgangwars.createaforum.com");
format(string,sizeof string,"%s (%d) Has Been Kicked | Reason: Account Banned.", pName2, playerid);
SendClientMessageToAll(0xFFC400AA, string);
}
} // This get's the length of the player name
new HouseID, HouseSlot, Name2[24];
// Get the player's name
GetPlayerName(playerid, Name2, sizeof(Name2));
// Loop through all houses to find the ones which belong to this player
for (HouseID = 1; HouseID < MAX_HOUSES; HouseID++)
{
// Check if the house exists
if (IsValidDynamicPickup(AHouseData[HouseID][PickupID]))
{
// Check if the house is owned
if (AHouseData[HouseID][Owned] == true)
{
// Check if the player is the owner of the house
if (strcmp(AHouseData[HouseID][Owner], Name2, false) == 0)
{
// Add the HouseID to the player's account for faster reference later on
APlayerData[playerid][Houses][HouseSlot] = HouseID;
// Load housecars if they weren't loaded at FilterscriptInit
if (LoadCarsDuringFSInit == false)
HouseFile_LoadCars(HouseID);
// Select the next HouseSlot
HouseSlot++;
}
}
}
}
pmInfo[playerid][Last] = -1;
pmInfo[playerid][NoPM] = 0;
AntiKillRowSpam[playerid] = 0;
PlayerAlreadyLoggedIn[playerid] = 0;
PlayAudioStreamForPlayer(playerid, "http://r4.soundowl.com/6f3d.mp3");
PlayerDualWatching[playerid] = 0;
InventationSent[playerid] = -1;
Inventation[playerid] = -1;
InDual[playerid] = 0;
Inventationprice[playerid] = 0;
format(string,sizeof(string),"FPS: %d Ping: %d",GetPlayerFPS(playerid),GetPlayerPing(playerid));
FPSCount = CreatePlayerTextDraw(playerid,500.000000, 6.000000,string);
PlayerTextDrawAlignment(playerid,FPSCount,0);
PlayerTextDrawBackgroundColor(playerid,FPSCount, 255);
PlayerTextDrawFont(playerid,FPSCount, 1);
PlayerTextDrawLetterSize(playerid,FPSCount, 0.34567, 1.1452);
PlayerTextDrawColor(playerid,FPSCount, -1);
PlayerTextDrawSetOutline(playerid,FPSCount, 1);
PlayerTextDrawUseBox(playerid,FPSCount,1);
PlayerTextDrawBoxColor(playerid,FPSCount,0x00000054);
PlayerTextDrawShow(playerid,FPSCount);
PlayerDat[playerid][InGang] = 0;
GangManager[playerid] = 0;
if(dini_Exists(pFile(playerid)))
{
LoginPlayer(playerid);
}
else
{
CreateFile(playerid);
}
FPSTimer[playerid] = SetTimerEx("GetPlayerFPS",100,1,"d",playerid);
UpdateText[playerid] = SetTimerEx("FPSPingUpdate",99,1,"d",playerid);
GangApproved[playerid] = 0;
new gangplayername[MAX_PLAYER_NAME];
GetPlayerName(playerid, gangplayername, MAX_PLAYER_NAME);
if(PlayerDat[playerid][InGang] == 1)
{
new string2[128];
new PlayerGangID = strval(dini_Get(pFile(playerid),"GangID"));
format(string2, sizeof(string2), "The Gang Member Of %s [GangID: %d] %s (%d) Has Connected To The Server.", dini_Get(pFile(playerid),"GangName"), PlayerGangID, pName2, playerid);
SendClientMessageToAll(0x09FF00FF, string2);
}
return 1;
}