[Ajuda]Entrar id
#1

Boas tipo como eu meto o player ao entrar dizer isto


Ricardo_Jorge(ID do jogador) entrou no servidor.
Reply
#2

Editado:
Eu sу complico e vocк й muito folgado entгo se vira.
Reply
#3

Se nгo der certo, ponha em OnPlayerSpawn.
Reply
#4

loool nao tenho o
PHP код:
public OnPlayerLogin(playerid,password[]) 
tu so complicas as coisas :S
Reply
#5

Quote:
Originally Posted by [Dk]TuReTOo
Посмотреть сообщение
loool nao tenho o
PHP код:
public OnPlayerLogin(playerid,password[]) 
tu so complicas as coisas :S
Eu nгo sou adivinha pra saber se vocк tem ou nao. Oks, nгo vou tentar te ajudar mais pra nгo complicar.
Reply
#6

Fodase vces complicam tanto isto й por isso que ha pessoal sempre a pedir ajuda, voces esplicam da maneira mais dificil que hб vejam o meu OnPlayerConnect

PHP код:
public OnPlayerConnect(playerid)
{
new 
string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(stringsizeof(string), "{37FF69}%s(%d) entrou no servidor.",pName);
SendClientMessageToAll(0x009D00AA,string);
new 
plname[MAX_PLAYER_NAME];
GetPlayerName(playeridplnamesizeof(plname));
if(
Security != 0)
{
SendClientMessage(playeridCOLOR_RED"{BF0000FF}%s(%d) {FFFFFF}quebrou uma das regras de acordo, a aзгo foi tomada.");
Kick(playerid);
return 
1;
}
new 
namestring strfind(plname"_"true);
if(
namestring == -1)
{
SendClientMessage(playeridCOLOR_RED"{FFFFFF}Departamento de imigraзгo: Seu nome nгo й aceitбvel.");
SendClientMessage(playeridCOLOR_RED"{FFFFFF}Dica: Seu nome deve estar no formato {BF0000FF}Nome_Aplido.");
Kick(playerid);
return 
1;
}
    
gActivePlayers[playerid]++;
    
numplayers++;
    
SelectChar[playerid] = 0HidePM[playerid] = 0PhoneOnline[playerid] = 0;
    
SelectCharID[playerid] = 0SelectCharPlace[playerid] = 0ChosenSkin[playerid] = 0;
    
GettingJob[playerid] = 0GuardOffer[playerid] = 999GuardPrice[playerid] = 0;
    
ApprovedLawyer[playerid] = 0CallLawyer[playerid] = 0WantLawyer[playerid] = 0;
    
KickPlayer[playerid] = 0CurrentMoney[playerid] = 0UsedFind[playerid] = 0;
    
CP[playerid] = 0Robbed[playerid] = 0SpawnChange[playerid] = 1;
    
CarOffer[playerid] = 999CarPrice[playerid] = 0CarID[playerid] = 0CarCalls[playerid] = 0;
    
RobbedTime[playerid] = 0MoneyMessage[playerid] = 0Condom[playerid] = 0Rope[playerid] = 0;
    
STDPlayer[playerid] = 0SexOffer[playerid] = 999SexPrice[playerid] = 0;
    
RepairOffer[playerid] = 999RepairPrice[playerid] = 0RepairCar[playerid] = 0;
    
TalkingLive[playerid] = 255LiveOffer[playerid] = 999TakingLesson[playerid] = 0;
    
RefillOffer[playerid] = 999RefillPrice[playerid] = 0MapIconsShown[playerid] = 0;
    
DrugOffer[playerid] = 999PlayerCuffed[playerid] = 0PlayerCuffedTime[playerid] = 0;
    
DrugPrice[playerid] = 0RegistrationStep[playerid] = 0OnCK[playerid] = 999GettingCK[playerid] = 999;
    
DrugGram[playerid] = 0ConnectedToPC[playerid] = 0OrderReady[playerid] = 0;
    
JailPrice[playerid] = 0MedicTime[playerid] = 0NeedMedicTime[playerid] = 0MedicBill[playerid] = 0GotHit[playerid] = 0;
    
WantedPoints[playerid] = 0GoChase[playerid] = 999GetChased[playerid] = 999PlacedNews[playerid] = 0;
    
OnDuty[playerid] = 0WantedLevel[playerid] = 0tactical[playerid] = 0swat[playerid] = 0TestFishes[playerid] = 0;
    
BoxWaitTime[playerid] = 0SchoolSpawn[playerid] = 0ChangePos2[playerid][1] = 0;
    
SafeTime[playerid] = 60TransportDuty[playerid] = 0PlayerTied[playerid] = 0;
    
BusCallTime[playerid] = 0TaxiCallTime[playerid] = 0MedicCallTime[playerid] = 0MechanicCallTime[playerid] = 0;
    
BusrouteEast[playerid][0] = 0BusrouteWest[playerid][0] = 0BusShowLocation[playerid][0] = 0BusShowLocationC[playerid] = 0;
    
FindTimePoints[playerid] = 0FindTime[playerid] = 0JobDuty[playerid] = 0;
    
Mobile[playerid] = 255Music[playerid] = 0BoxOffer[playerid] = 999PlayerBoxing[playerid] = 0;
    
Spectate[playerid] = 255PlayerDrunk[playerid] = 0PlayerDrunkTime[playerid] = 0;
    
Unspec[playerid][sLocal] = 255FishCount[playerid] = 0;
    
WritingPaper[playerid] = 0WritingPaperNumber[playerid] = 999WritingLine[playerid] = 0BringingPaper[playerid] = 0GotPaper[playerid] = 0;
    
PaperOffer[playerid] = 999/*ConsumingMoney[playerid] = 0;*/
    
ScriptMoney[playerid] = 0ScriptMoneyUpdated[playerid] = 0;
    for (new 
c=0c<13c++) ScriptWeapons[playerid][c] = 0;
    
ScriptWeaponsUpdated[playerid] = 0;
    
gLastCar[playerid] = 0FirstSpawn[playerid] = 1;
    
gOoc[playerid] = 0gNews[playerid] = 0BigEar[playerid] = 0gDice[playerid] = 0gFam[playerid] = 0;
    
gSpeedo[playerid] = 0gGas[playerid] = 0;
    
gPlayerLogged[playerid] = 0gPlayerLogTries[playerid] = 0gPlayerAccount[playerid] = 0;
    
gPlayerSpawned[playerid] = 0PlayerKarting[playerid] = 0PlayerInKart[playerid] = 0;
    
PlayerTazeTime[playerid] = 0PlayerStoned[playerid] = 0;
    
StartTime[playerid] = 0TicketOffer[playerid] = 999TicketMoney[playerid] = 0;
    
MatsHolding[playerid] = 0TutTime[playerid] = 0;
    
gPlayerMission[playerid] = 0TaxiAccepted[playerid] = 999BusAccepted[playerid] = 999;
    
PlayerInfo[playerid][pCash] = dollahNoFuel[playerid] = 0;
    
HireCar[playerid] = 299GangCar[playerid] = 512PlayersChannel[playerid] = 999;
    
TransportValue[playerid] = 0TransportMoney[playerid] = 0TransportTime[playerid] = 0TransportCost[playerid] = 0TransportDriver[playerid] = 999;
    
Locator[playerid] = 0PlayerOnMission[playerid] = 0MissionCheckpoint[playerid] = 0;
    
WatchingTV[playerid] = 0PlayerPaintballing[playerid] = 0PlayerPaintballKills[playerid] = 0;
    
Fishes[playerid][pLastFish] = 0Fishes[playerid][pFishID] = 0;
    
ProposeOffer[playerid] = 999MarryWitness[playerid] = 999MarryWitnessOffer[playerid] = 999MarriageCeremoney[playerid] = 0ProposedTo[playerid] = 999GotProposedBy[playerid] = 999DivorceOffer[playerid] = 999;
    
SafeGivePlayerMoney(playerid,PlayerInfo[playerid][pCash]); tactical[playerid] = 0swat[playerid] = 0authorizeswat 0authorizetactical 0;
    
PizzaCallTime[playerid] = 0bPizza[playerid] = 0sPizza[playerid] = 0gEngine[playerid] = 0FarmerVar[playerid] = 0FarmerPickup[playerid][0] = 0SmugglerWork[playerid] = 0SmuggledDrugs[playerid] = 0JustDied[playerid] = 0KnockedDown[playerid] = 0UnidentifedCall[playerid] = 0;
    
LicenseOffer[playerid] = 999LicensePrice[playerid] = 0LicenseType[playerid] = 0UsingDrugs[playerid] = 0AfterTutorial[playerid] = 0;
    
OwnableCarOffer[playerid] = 999OwnableCarID[playerid] = 0OwnableCarPrice[playerid] = 0BlindFold[playerid] = 0PlayerIsSweeping[playerid] = 0AdminDuty[playerid] = 0JustReported[playerid] = 0PlayerNeedsHelp[playerid] = 0AdminSpec[playerid] = 0IsSmoking[playerid] = 0UsingSmokeAnim[playerid] = 0ReduceTime[playerid] = 0;
    
CreatingGun[playerid] = 0CreatingGunAmmo[playerid] = 0CreatingGunPrice[playerid] = 0IsPuttingMaterials[playerid] = 0IsTakingGun[playerid] = 0;
    
InAFoodPlace[playerid] = 0;
    
PlayerInfo[playerid][pLevel] = 0;
    
PlayerInfo[playerid][pAdmin] = 0;
    
PlayerInfo[playerid][pDonateRank] = 0;
    
PlayerInfo[playerid][gPupgrade] = 0;
    
PlayerInfo[playerid][pConnectTime] = 0;
    
PlayerInfo[playerid][pReg] = 0;
    
PlayerInfo[playerid][pSex] = 0;
    
PlayerInfo[playerid][pAge] = 0;
    
PlayerInfo[playerid][pOrigin] = 0;
    
PlayerInfo[playerid][pExp] = 0;
    
PlayerInfo[playerid][pAccount] = 0;
    
PlayerInfo[playerid][pCrimes] = 0;
    
PlayerInfo[playerid][pDeaths] = 0;
    
PlayerInfo[playerid][pArrested] = 0;
    
PlayerInfo[playerid][pWantedDeaths] = 0;
    
PlayerInfo[playerid][pPhoneBook] = 0;
    
PlayerInfo[playerid][pLottoNr] = 0;
    
PlayerInfo[playerid][pFishes] = 0;
    
PlayerInfo[playerid][pBiggestFish] = 0;
    
PlayerInfo[playerid][pJob] = 0;
    
PlayerInfo[playerid][pPayCheck] = 0;
    
PlayerInfo[playerid][pHeadValue] = 0;
    
PlayerInfo[playerid][pJailed] = 0;
    
PlayerInfo[playerid][pJailTime] = 0;
    
PlayerInfo[playerid][pMats] = 0;
    
PlayerInfo[playerid][pDrugs] = 0;
    
PlayerInfo[playerid][pLeader] = 0;
    
PlayerInfo[playerid][pMember] = 0;
    
PlayerInfo[playerid][pFMember] = 255;
    
PlayerInfo[playerid][pRank] = 0;
    
PlayerInfo[playerid][pChar] = 0;
    
PlayerInfo[playerid][pContractTime] = 0;
    
PlayerInfo[playerid][pDetSkill] = 0;
    
PlayerInfo[playerid][pSexSkill] = 0;
    
PlayerInfo[playerid][pBoxSkill] = 0;
    
PlayerInfo[playerid][pLawSkill] = 0;
    
PlayerInfo[playerid][pMechSkill] = 0;
    
PlayerInfo[playerid][pJackSkill] = 0;
    
PlayerInfo[playerid][pCarSkill] = 0;
    
PlayerInfo[playerid][pNewsSkill] = 0;
    
PlayerInfo[playerid][pDrugsSkill] = 0;
    
PlayerInfo[playerid][pCookSkill] = 0;
    
PlayerInfo[playerid][pFishSkill] = 0;
    
PlayerInfo[playerid][pSHealth] = 0.0;
    
PlayerInfo[playerid][pHealth] = 100.0;
    
PlayerInfo[playerid][pPos_x] = 2269.4500;
    
PlayerInfo[playerid][pPos_y] = -77.0562;
    
PlayerInfo[playerid][pPos_z] = 26.5859;
    
PlayerInfo[playerid][pInt] = 0;
    
PlayerInfo[playerid][pLocal] = 255;
    
PlayerInfo[playerid][pTeam] = 3;
    
PlayerInfo[playerid][pModel] = 7;
    new 
randphone 100000 random(899999);//minimum 1000  max 9999 //giving one at the start
    
PlayerInfo[playerid][pPnumber] = randphone;
    
PlayerInfo[playerid][pPcarkey] = 999;
    
PlayerInfo[playerid][pPcarkey2] = 999;
    
PlayerInfo[playerid][pPcarkey3] = 999;
    
PlayerInfo[playerid][pPhousekey] = 255;
    
PlayerInfo[playerid][pGangKey] = 255;
    
PlayerInfo[playerid][pPbiskey] = 255;
    
PlayerInfo[playerid][pCarLic] = 0;
    
PlayerInfo[playerid][pFlyLic] = 0;
    
PlayerInfo[playerid][pBoatLic] = 0;
    
PlayerInfo[playerid][pFishLic] = 0;
    
PlayerInfo[playerid][pGunLic] = 0;
    
PlayerInfo[playerid][pGun1] = 0;
    
PlayerInfo[playerid][pGun2] = 0;
    
PlayerInfo[playerid][pGun3] = 0;
    
PlayerInfo[playerid][pGun4] = 0;
    
PlayerInfo[playerid][pAmmo1] = 0;
    
PlayerInfo[playerid][pAmmo2] = 0;
    
PlayerInfo[playerid][pAmmo3] = 0;
    
PlayerInfo[playerid][pAmmo4] = 0;
    
PlayerInfo[playerid][pCarTime] = 0;
    
PlayerInfo[playerid][pPayDay] = 0;
    
PlayerInfo[playerid][pPayDayHad] = 0;
    
PlayerInfo[playerid][pWatch] = 0;
    
PlayerInfo[playerid][pCrashed] = 0;
    
PlayerInfo[playerid][pWins] = 0;
    
PlayerInfo[playerid][pLoses] = 0;
    
PlayerInfo[playerid][pAlcoholPerk] = 0;
    
PlayerInfo[playerid][pDrugPerk] = 0;
    
PlayerInfo[playerid][pMiserPerk] = 0;
    
PlayerInfo[playerid][pPainPerk] = 0;
    
PlayerInfo[playerid][pTraderPerk] = 0;
    
PlayerInfo[playerid][pTut] = 0;
    
PlayerInfo[playerid][pMissionNr] = 0;
    
PlayerInfo[playerid][pWarns] = 0;
    
PlayerInfo[playerid][pFuel] = 0;
    
PlayerInfo[playerid][pVirWorld] = 0;
    
PlayerInfo[playerid][pRequestingBackup] = 0;
    
PlayerInfo[playerid][pRoadblock] = 0;
    
PlayerInfo[playerid][pFishTool] = 0;
    
strmid(PlayerInfo[playerid][pNote1], "Nenhum"0strlen("Nenhum"), 255);
    
PlayerInfo[playerid][pNote1s] = 0;
    
strmid(PlayerInfo[playerid][pNote2], "Nenhum"0strlen("Nenhum"), 255);
    
PlayerInfo[playerid][pNote2s] = 0;
    
strmid(PlayerInfo[playerid][pNote3], "Nenhum"0strlen("Nenhum"), 255);
    
PlayerInfo[playerid][pNote3s] = 0;
    
strmid(PlayerInfo[playerid][pNote4], "Nenhum"0strlen("Nenhum"), 255);
    
PlayerInfo[playerid][pNote4s] = 0;
    
strmid(PlayerInfo[playerid][pNote5], "Nenhum"0strlen("Nenhum"), 255);
    
PlayerInfo[playerid][pNote5s] = 0;
    
PlayerInfo[playerid][pInvWeapon] = 0;
    
PlayerInfo[playerid][pInvAmmo] = 0;
    
PlayerInfo[playerid][pLighter] = 0;
    
PlayerInfo[playerid][pCigarettes] = 0;
    
PlayerInfo[playerid][pMask] = 0;
    
PlayerInfo[playerid][pMaskuse] = 0;
    
PlayerInfo[playerid][pHideNumber] = 0;
    
PlayerInfo[playerid][pSpeaker] = 0;
    
PlayerInfo[playerid][pLocked] = 0;
    
//PlayerInfo[playerid][pSQLID] = 0;
    
ClearCrime(playerid);
    
ClearFishes(playerid);
    
ClearCooking(playerid);
    
ClearGroceries(playerid);
    
ClearMarriage(playerid);
    
// ---------------- TextDraw -------------------
    
TextShow[playerid] = false;
    
VHSCreated[playerid] = false;
    
TextDrawShowForPlayer(playerid,lbt);
    
TextDrawShowForPlayer(playerid,lbb);
    
// ---------------------------------------------
    
SetPlayerColor(playerid,COLOR_GRAD2);
    
HouseEntered[playerid] = 255;
    for(new 
184sizeof(CarInfo); h++)
    {
        
SetVehicleParamsForPlayer(h,playerid,0,CarInfo[h][cLock]);
    }
    
GetPlayerName(playeridplnamesizeof(plname));
    
format(stringsizeof(string), "users/%s.ini"plname);
    if(
fexist(string))
    {
        
gPlayerAccount[playerid] = 1;
    }
    else
    {
        
gPlayerAccount[playerid] = 0;
    }
    return 
1;

Reply
#7

Quote:
Originally Posted by [Dk]TuReTOo
Посмотреть сообщение
Fodase vces complicam tanto isto й por isso que ha pessoal sempre a pedir ajuda, voces esplicam da maneira mais dificil que hб vejam o meu OnPlayerConnect

PHP код:
public OnPlayerConnect(playerid)
{
new 
string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
new 
plname[MAX_PLAYER_NAME];
GetPlayerName(playeridplnamesizeof(plname));
if(
Security != 0)
{
SendClientMessage(playeridCOLOR_RED"{BF0000FF}%s(%d) {FFFFFF}quebrou uma das regras de acordo, a aзгo foi tomada.");
Kick(playerid);
return 
1;
}
new 
namestring strfind(plname"_"true);
if(
namestring == -1)
{
SendClientMessage(playeridCOLOR_RED"{FFFFFF}Departamento de imigraзгo: Seu nome nгo й aceitбvel.");
SendClientMessage(playeridCOLOR_RED"{FFFFFF}Dica: Seu nome deve estar no formato {BF0000FF}Nome_Aplido.");
Kick(playerid);
return 
1;
}
    
gActivePlayers[playerid]++;
    
numplayers++;
    
SelectChar[playerid] = 0HidePM[playerid] = 0PhoneOnline[playerid] = 0;
    
SelectCharID[playerid] = 0SelectCharPlace[playerid] = 0ChosenSkin[playerid] = 0;
    
GettingJob[playerid] = 0GuardOffer[playerid] = 999GuardPrice[playerid] = 0;
    
ApprovedLawyer[playerid] = 0CallLawyer[playerid] = 0WantLawyer[playerid] = 0;
    
KickPlayer[playerid] = 0CurrentMoney[playerid] = 0UsedFind[playerid] = 0;
    
CP[playerid] = 0Robbed[playerid] = 0SpawnChange[playerid] = 1;
    
CarOffer[playerid] = 999CarPrice[playerid] = 0CarID[playerid] = 0CarCalls[playerid] = 0;
    
RobbedTime[playerid] = 0MoneyMessage[playerid] = 0Condom[playerid] = 0Rope[playerid] = 0;
    
STDPlayer[playerid] = 0SexOffer[playerid] = 999SexPrice[playerid] = 0;
    
RepairOffer[playerid] = 999RepairPrice[playerid] = 0RepairCar[playerid] = 0;
    
TalkingLive[playerid] = 255LiveOffer[playerid] = 999TakingLesson[playerid] = 0;
    
RefillOffer[playerid] = 999RefillPrice[playerid] = 0MapIconsShown[playerid] = 0;
    
DrugOffer[playerid] = 999PlayerCuffed[playerid] = 0PlayerCuffedTime[playerid] = 0;
    
DrugPrice[playerid] = 0RegistrationStep[playerid] = 0OnCK[playerid] = 999GettingCK[playerid] = 999;
    
DrugGram[playerid] = 0ConnectedToPC[playerid] = 0OrderReady[playerid] = 0;
    
JailPrice[playerid] = 0MedicTime[playerid] = 0NeedMedicTime[playerid] = 0MedicBill[playerid] = 0GotHit[playerid] = 0;
    
WantedPoints[playerid] = 0GoChase[playerid] = 999GetChased[playerid] = 999PlacedNews[playerid] = 0;
    
OnDuty[playerid] = 0WantedLevel[playerid] = 0tactical[playerid] = 0swat[playerid] = 0TestFishes[playerid] = 0;
    
BoxWaitTime[playerid] = 0SchoolSpawn[playerid] = 0ChangePos2[playerid][1] = 0;
    
SafeTime[playerid] = 60TransportDuty[playerid] = 0PlayerTied[playerid] = 0;
    
BusCallTime[playerid] = 0TaxiCallTime[playerid] = 0MedicCallTime[playerid] = 0MechanicCallTime[playerid] = 0;
    
BusrouteEast[playerid][0] = 0BusrouteWest[playerid][0] = 0BusShowLocation[playerid][0] = 0BusShowLocationC[playerid] = 0;
    
FindTimePoints[playerid] = 0FindTime[playerid] = 0JobDuty[playerid] = 0;
    
Mobile[playerid] = 255Music[playerid] = 0BoxOffer[playerid] = 999PlayerBoxing[playerid] = 0;
    
Spectate[playerid] = 255PlayerDrunk[playerid] = 0PlayerDrunkTime[playerid] = 0;
    
Unspec[playerid][sLocal] = 255FishCount[playerid] = 0;
    
WritingPaper[playerid] = 0WritingPaperNumber[playerid] = 999WritingLine[playerid] = 0BringingPaper[playerid] = 0GotPaper[playerid] = 0;
    
PaperOffer[playerid] = 999/*ConsumingMoney[playerid] = 0;*/
    
ScriptMoney[playerid] = 0ScriptMoneyUpdated[playerid] = 0;
    for (new 
c=0c<13c++) ScriptWeapons[playerid][c] = 0;
    
ScriptWeaponsUpdated[playerid] = 0;
    
gLastCar[playerid] = 0FirstSpawn[playerid] = 1;
    
gOoc[playerid] = 0gNews[playerid] = 0BigEar[playerid] = 0gDice[playerid] = 0gFam[playerid] = 0;
    
gSpeedo[playerid] = 0gGas[playerid] = 0;
    
gPlayerLogged[playerid] = 0gPlayerLogTries[playerid] = 0gPlayerAccount[playerid] = 0;
    
gPlayerSpawned[playerid] = 0PlayerKarting[playerid] = 0PlayerInKart[playerid] = 0;
    
PlayerTazeTime[playerid] = 0PlayerStoned[playerid] = 0;
    
StartTime[playerid] = 0TicketOffer[playerid] = 999TicketMoney[playerid] = 0;
    
MatsHolding[playerid] = 0TutTime[playerid] = 0;
    
gPlayerMission[playerid] = 0TaxiAccepted[playerid] = 999BusAccepted[playerid] = 999;
    
PlayerInfo[playerid][pCash] = dollahNoFuel[playerid] = 0;
    
HireCar[playerid] = 299GangCar[playerid] = 512PlayersChannel[playerid] = 999;
    
TransportValue[playerid] = 0TransportMoney[playerid] = 0TransportTime[playerid] = 0TransportCost[playerid] = 0TransportDriver[playerid] = 999;
    
Locator[playerid] = 0PlayerOnMission[playerid] = 0MissionCheckpoint[playerid] = 0;
    
WatchingTV[playerid] = 0PlayerPaintballing[playerid] = 0PlayerPaintballKills[playerid] = 0;
    
Fishes[playerid][pLastFish] = 0Fishes[playerid][pFishID] = 0;
    
ProposeOffer[playerid] = 999MarryWitness[playerid] = 999MarryWitnessOffer[playerid] = 999MarriageCeremoney[playerid] = 0ProposedTo[playerid] = 999GotProposedBy[playerid] = 999DivorceOffer[playerid] = 999;
    
SafeGivePlayerMoney(playerid,PlayerInfo[playerid][pCash]); tactical[playerid] = 0swat[playerid] = 0authorizeswat 0authorizetactical 0;
    
PizzaCallTime[playerid] = 0bPizza[playerid] = 0sPizza[playerid] = 0gEngine[playerid] = 0FarmerVar[playerid] = 0FarmerPickup[playerid][0] = 0SmugglerWork[playerid] = 0SmuggledDrugs[playerid] = 0JustDied[playerid] = 0KnockedDown[playerid] = 0UnidentifedCall[playerid] = 0;
    
LicenseOffer[playerid] = 999LicensePrice[playerid] = 0LicenseType[playerid] = 0UsingDrugs[playerid] = 0AfterTutorial[playerid] = 0;
    
OwnableCarOffer[playerid] = 999OwnableCarID[playerid] = 0OwnableCarPrice[playerid] = 0BlindFold[playerid] = 0PlayerIsSweeping[playerid] = 0AdminDuty[playerid] = 0JustReported[playerid] = 0PlayerNeedsHelp[playerid] = 0AdminSpec[playerid] = 0IsSmoking[playerid] = 0UsingSmokeAnim[playerid] = 0ReduceTime[playerid] = 0;
    
CreatingGun[playerid] = 0CreatingGunAmmo[playerid] = 0CreatingGunPrice[playerid] = 0IsPuttingMaterials[playerid] = 0IsTakingGun[playerid] = 0;
    
InAFoodPlace[playerid] = 0;
    
PlayerInfo[playerid][pLevel] = 0;
    
PlayerInfo[playerid][pAdmin] = 0;
    
PlayerInfo[playerid][pDonateRank] = 0;
    
PlayerInfo[playerid][gPupgrade] = 0;
    
PlayerInfo[playerid][pConnectTime] = 0;
    
PlayerInfo[playerid][pReg] = 0;
    
PlayerInfo[playerid][pSex] = 0;
    
PlayerInfo[playerid][pAge] = 0;
    
PlayerInfo[playerid][pOrigin] = 0;
    
PlayerInfo[playerid][pExp] = 0;
    
PlayerInfo[playerid][pAccount] = 0;
    
PlayerInfo[playerid][pCrimes] = 0;
    
PlayerInfo[playerid][pDeaths] = 0;
    
PlayerInfo[playerid][pArrested] = 0;
    
PlayerInfo[playerid][pWantedDeaths] = 0;
    
PlayerInfo[playerid][pPhoneBook] = 0;
    
PlayerInfo[playerid][pLottoNr] = 0;
    
PlayerInfo[playerid][pFishes] = 0;
    
PlayerInfo[playerid][pBiggestFish] = 0;
    
PlayerInfo[playerid][pJob] = 0;
    
PlayerInfo[playerid][pPayCheck] = 0;
    
PlayerInfo[playerid][pHeadValue] = 0;
    
PlayerInfo[playerid][pJailed] = 0;
    
PlayerInfo[playerid][pJailTime] = 0;
    
PlayerInfo[playerid][pMats] = 0;
    
PlayerInfo[playerid][pDrugs] = 0;
    
PlayerInfo[playerid][pLeader] = 0;
    
PlayerInfo[playerid][pMember] = 0;
    
PlayerInfo[playerid][pFMember] = 255;
    
PlayerInfo[playerid][pRank] = 0;
    
PlayerInfo[playerid][pChar] = 0;
    
PlayerInfo[playerid][pContractTime] = 0;
    
PlayerInfo[playerid][pDetSkill] = 0;
    
PlayerInfo[playerid][pSexSkill] = 0;
    
PlayerInfo[playerid][pBoxSkill] = 0;
    
PlayerInfo[playerid][pLawSkill] = 0;
    
PlayerInfo[playerid][pMechSkill] = 0;
    
PlayerInfo[playerid][pJackSkill] = 0;
    
PlayerInfo[playerid][pCarSkill] = 0;
    
PlayerInfo[playerid][pNewsSkill] = 0;
    
PlayerInfo[playerid][pDrugsSkill] = 0;
    
PlayerInfo[playerid][pCookSkill] = 0;
    
PlayerInfo[playerid][pFishSkill] = 0;
    
PlayerInfo[playerid][pSHealth] = 0.0;
    
PlayerInfo[playerid][pHealth] = 100.0;
    
PlayerInfo[playerid][pPos_x] = 2269.4500;
    
PlayerInfo[playerid][pPos_y] = -77.0562;
    
PlayerInfo[playerid][pPos_z] = 26.5859;
    
PlayerInfo[playerid][pInt] = 0;
    
PlayerInfo[playerid][pLocal] = 255;
    
PlayerInfo[playerid][pTeam] = 3;
    
PlayerInfo[playerid][pModel] = 7;
    new 
randphone 100000 random(899999);//minimum 1000  max 9999 //giving one at the start
    
PlayerInfo[playerid][pPnumber] = randphone;
    
PlayerInfo[playerid][pPcarkey] = 999;
    
PlayerInfo[playerid][pPcarkey2] = 999;
    
PlayerInfo[playerid][pPcarkey3] = 999;
    
PlayerInfo[playerid][pPhousekey] = 255;
    
PlayerInfo[playerid][pGangKey] = 255;
    
PlayerInfo[playerid][pPbiskey] = 255;
    
PlayerInfo[playerid][pCarLic] = 0;
    
PlayerInfo[playerid][pFlyLic] = 0;
    
PlayerInfo[playerid][pBoatLic] = 0;
    
PlayerInfo[playerid][pFishLic] = 0;
    
PlayerInfo[playerid][pGunLic] = 0;
    
PlayerInfo[playerid][pGun1] = 0;
    
PlayerInfo[playerid][pGun2] = 0;
    
PlayerInfo[playerid][pGun3] = 0;
    
PlayerInfo[playerid][pGun4] = 0;
    
PlayerInfo[playerid][pAmmo1] = 0;
    
PlayerInfo[playerid][pAmmo2] = 0;
    
PlayerInfo[playerid][pAmmo3] = 0;
    
PlayerInfo[playerid][pAmmo4] = 0;
    
PlayerInfo[playerid][pCarTime] = 0;
    
PlayerInfo[playerid][pPayDay] = 0;
    
PlayerInfo[playerid][pPayDayHad] = 0;
    
PlayerInfo[playerid][pWatch] = 0;
    
PlayerInfo[playerid][pCrashed] = 0;
    
PlayerInfo[playerid][pWins] = 0;
    
PlayerInfo[playerid][pLoses] = 0;
    
PlayerInfo[playerid][pAlcoholPerk] = 0;
    
PlayerInfo[playerid][pDrugPerk] = 0;
    
PlayerInfo[playerid][pMiserPerk] = 0;
    
PlayerInfo[playerid][pPainPerk] = 0;
    
PlayerInfo[playerid][pTraderPerk] = 0;
    
PlayerInfo[playerid][pTut] = 0;
    
PlayerInfo[playerid][pMissionNr] = 0;
    
PlayerInfo[playerid][pWarns] = 0;
    
PlayerInfo[playerid][pFuel] = 0;
    
PlayerInfo[playerid][pVirWorld] = 0;
    
PlayerInfo[playerid][pRequestingBackup] = 0;
    
PlayerInfo[playerid][pRoadblock] = 0;
    
PlayerInfo[playerid][pFishTool] = 0;
    
strmid(PlayerInfo[playerid][pNote1], "Nenhum"0strlen("Nenhum"), 255);
    
PlayerInfo[playerid][pNote1s] = 0;
    
strmid(PlayerInfo[playerid][pNote2], "Nenhum"0strlen("Nenhum"), 255);
    
PlayerInfo[playerid][pNote2s] = 0;
    
strmid(PlayerInfo[playerid][pNote3], "Nenhum"0strlen("Nenhum"), 255);
    
PlayerInfo[playerid][pNote3s] = 0;
    
strmid(PlayerInfo[playerid][pNote4], "Nenhum"0strlen("Nenhum"), 255);
    
PlayerInfo[playerid][pNote4s] = 0;
    
strmid(PlayerInfo[playerid][pNote5], "Nenhum"0strlen("Nenhum"), 255);
    
PlayerInfo[playerid][pNote5s] = 0;
    
PlayerInfo[playerid][pInvWeapon] = 0;
    
PlayerInfo[playerid][pInvAmmo] = 0;
    
PlayerInfo[playerid][pLighter] = 0;
    
PlayerInfo[playerid][pCigarettes] = 0;
    
PlayerInfo[playerid][pMask] = 0;
    
PlayerInfo[playerid][pMaskuse] = 0;
    
PlayerInfo[playerid][pHideNumber] = 0;
    
PlayerInfo[playerid][pSpeaker] = 0;
    
PlayerInfo[playerid][pLocked] = 0;
    
//PlayerInfo[playerid][pSQLID] = 0;
    
ClearCrime(playerid);
    
ClearFishes(playerid);
    
ClearCooking(playerid);
    
ClearGroceries(playerid);
    
ClearMarriage(playerid);
    
// ---------------- TextDraw -------------------
    
TextShow[playerid] = false;
    
VHSCreated[playerid] = false;
    
TextDrawShowForPlayer(playerid,lbt);
    
TextDrawShowForPlayer(playerid,lbb);
    
// ---------------------------------------------
    
SetPlayerColor(playerid,COLOR_GRAD2);
    
HouseEntered[playerid] = 255;
    for(new 
184sizeof(CarInfo); h++)
    {
        
SetVehicleParamsForPlayer(h,playerid,0,CarInfo[h][cLock]);
    }
    
GetPlayerName(playeridplnamesizeof(plname));
    
format(stringsizeof(string), "users/%s.ini"plname);
    if(
fexist(string))
    {
        
gPlayerAccount[playerid] = 1;
    }
    else
    {
        
gPlayerAccount[playerid] = 0;
    }
    return 
1;

Ahh velho presta atenзгo mano, vocк quer tudo na mгo? Porque nгo usa logica? Porque nгo arrisca? Sу sabe pedir ajuda, nгo deve ler 1 tutorial, vai procurar aprender porra.

Fica sempre dependendo dos outros, alem da gente tar tentando ajudar ainda tem que ler isso, folgado pra caralho neh.

Se vira ae. Se vocк tivesse o minimo de inteligencia ou soubesse usar a lуgica vocк fazeria isso facil.
Agora vem com ignorancia se fode ae entгo. Vai ler tutoriais na Wiki Sa-mp pra ve se aprende mais.
Reply
#8

Nem todo mundo usa Godfather, nгo complique a vida dos novatos.

PHP код:

public OnPlayerConnect(playerid)
{
    new 
j_string[0x80], nome[MAX_PLAYER_NAME]; GetPlayerName(playeridnomesizeof(nome));
    
format(j_stringsizeof(j_string), "%s[%i] entrou no server."nomeplayerid);
    
SendClientMessageToAll(-1j_string);
    return 
0x01;

Quote:
Originally Posted by LOL
public OnPlayerConnect(playerid)
{
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string, sizeof(string), "{37FF69}%s(%d) entrou no servidor.",pName);
SendClientMessageToAll(0x009D00AA,string);
new plname[MAX_PLAYER_NAME];
GetPlayerName(playerid, plname, sizeof(plname));
lol
Pra que 2 GetPlayerName? ._. ...
Reply
#9

Quote:
Originally Posted by Ricop522
Посмотреть сообщение
Nem todo mundo usa Godfather, nгo complique a vida dos novatos.

PHP код:

public OnPlayerConnect(playerid)
{
    new 
j_string[0x80], nome[MAX_PLAYER_NAME]; GetPlayerName(playeridnomesizeof(nome));
    
format(j_stringsizeof(j_string), "%s[%i] entrou no server."nomeplayerid);
    
SendClientMessageToAll(-1j_string);
    return 
0x01;

Sim, й que to acustumado preciso tirar esse habito.
Mas pow o cara veio cheio de ignorancia, tu viu oque ele falou la? Putz mano afs fico puto com isso.
Era sу ele falar que nгo usa God Father e eu falava pra ele coloca no Connect.
Reply
#10

Quote:
Originally Posted by DJ Bruninho
Посмотреть сообщение
Sim, й que to acustumado preciso tirar esse habito.
Mas pow o cara veio cheio de ignorancia, tu viu oque ele falou la? Putz mano afs fico puto com isso.
Era sу ele falar que nгo usa God Father e eu falava pra ele coloca no Connect.

@ O que vale й a intenзгo.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)