- 0
Problema Login/Register!
-
Similar Content
-
- 11 replies
- 401 views
-
- 3 answers
- 835 views
-
- 1 reply
- 42 views
-
- 2 answers
- 869 views
-
Problema turf
By Soryn.,
- 3 answers
- 450 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
MaXeP
Salut ,
Am o problema legata de register/login! Cand intru pe server imi apare ca in imagine http://img541.imageshack.us/img541/1787/11555881.png Si nu apare ca sa ma inregistrez sau sa ma loghez! In gm am aceste linii :
[pawn]//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=OnPlayerRegister=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
public OnPlayerRegister(playerid, password[])
{
if(IsPlayerNPC(playerid)) return SpawnPlayer(playerid);
if(IsPlayerNPC(playerid)) return 1;
if(IsPlayerConnected(playerid))
{
if(IsPlayerNPC(playerid)) return SpawnPlayer(playerid);
if(IsPlayerNPC(playerid)) return 1;
new string3[64];
new playername3[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername3, sizeof(playername3));
format(string3, sizeof(string3), "User/%s.ini", playername3);
new File: hFile = fopen(string3, io_write);
if (hFile)
{
strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255);
new var[32];
format(var, 32, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
PlayerInfo[playerid][pBani] = GetPlayerMoney(playerid);
format(var, 32, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
format(var, 32, "LevelAdmin=%d\n",PlayerInfo[playerid][pAdminServer]);fwrite(hFile, var);
format(var, 32, "LevelHelper2=%d\n",PlayerInfo[playerid][pHelperLevel]);fwrite(hFile, var);
format(var, 32, "RivaliUcisi=%d\n",PlayerInfo[playerid][pWarKill]);fwrite(hFile, var);
format(var, 32, "CallRep=%d\n",PlayerInfo[playerid][pCallRep]);fwrite(hFile, var);
format(var, 32, "TotalRivaliUcisi=%d\n",PlayerInfo[playerid][ptWarKill]);fwrite(hFile, var);
format(var, 32, "Awarn=%d\n",PlayerInfo[playerid][pAwarn]);fwrite(hFile, var);
format(var, 32, "Masinaq=%d\n",PlayerInfo[playerid][pMasinaq]);fwrite(hFile, var);
format(var, 32, "Masinaq2=%d\n",PlayerInfo[playerid][pMasinaq]);fwrite(hFile, var);
format(var, 32, "Pwipe=%d\n",PlayerInfo[playerid][Pwipe]);fwrite(hFile, var);
format(var, 32, "Acclock=%d\n",PlayerInfo[playerid][pLock]);fwrite(hFile, var);
format(var, 32, "DonateRank=%d\n",PlayerInfo[playerid][pDonateRank]);fwrite(hFile, var);
format(var, 32, "UpgradePoints=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var);
format(var, 32, "ConnectedTime=%d\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var);
format(var, 32, "Registered=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var);
format(var, 32, "Sex=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var);
format(var, 32, "Age=%d\n",PlayerInfo[playerid]
);fwrite(hFile, var);
format(var, 32, "Fightstyles=%d\n",PlayerInfo[playerid][pFstyles]);fwrite(hFile, var);
format(var, 32, "Walkstyles=%d\n",PlayerInfo[playerid][pWstyles]);fwrite(hFile, var);
format(var, 32, "Origin=%d\n",PlayerInfo[playerid][pOrigin]);fwrite(hFile, var);
format(var, 32, "CK=%d\n",PlayerInfo[playerid][pCK]);fwrite(hFile, var);
format(var, 32, "Muted=%d\n",PlayerInfo[playerid][pMuted]);fwrite(hFile, var);
format(var, 32, "Respect=%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var);
format(var, 32, "Money2=%d\n",PlayerInfo[playerid][pBani]);fwrite(hFile, var);
format(var, 32, "Bank2=%d\n",PlayerInfo[playerid][pAcont]);fwrite(hFile, var);
format(var, 32, "Crimes=%d\n",PlayerInfo[playerid][pCrimes]);fwrite(hFile, var);
format(var, 32, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
format(var, 32, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
format(var, 32, "Arrested=%d\n",PlayerInfo[playerid][pArrested]);fwrite(hFile, var);
format(var, 32, "WantedDeaths=%d\n",PlayerInfo[playerid][pWantedDeaths]);fwrite(hFile, var);
format(var, 32, "Phonebook=%d\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var);
format(var, 32, "LottoNr=%d\n",PlayerInfo[playerid][pLottoNr]);fwrite(hFile, var);
format(var, 32, "Fishes=%d\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var);
format(var, 32, "BiggestFish=%d\n",PlayerInfo[playerid][pBiggestFish]);fwrite(hFile, var);
format(var, 32, "Job=%d\n",PlayerInfo[playerid][pJob]);fwrite(hFile, var);
format(var, 32, "Paycheck=%d\n",PlayerInfo[playerid][pPayCheck]);fwrite(hFile, var);
format(var, 32, "HeadValue=%d\n",PlayerInfo[playerid][pHeadValue]);fwrite(hFile, var);
format(var, 32, "Materials=%d\n",PlayerInfo[playerid][pMats]);fwrite(hFile, var);
format(var, 32, "Drugs=%d\n",PlayerInfo[playerid][pDrugs]);fwrite(hFile, var);
format(var, 32, "Lider=%d\n",PlayerInfo[playerid][pLider]);fwrite(hFile, var);
format(var, 32, "Membru=%d\n",PlayerInfo[playerid][pMembru]);fwrite(hFile, var);
format(var, 32, "FMembru=%d\n",PlayerInfo[playerid][pFMembru]);fwrite(hFile, var);
format(var, 32, "Rank=%d\n",PlayerInfo[playerid][pRank]);fwrite(hFile, var);
format(var, 32, "Char=%d\n",PlayerInfo[playerid][pChar]);fwrite(hFile, var);
format(var, 32, "ContractTime=%d\n",PlayerInfo[playerid][pContractTime]);fwrite(hFile, var);
format(var, 32, "DetSkill=%d\n",PlayerInfo[playerid][pDetSkill]);fwrite(hFile, var);
format(var, 32, "SexSkill=%d\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var);
format(var, 32, "BoxSkill=%d\n",PlayerInfo[playerid][pBoxSkill]);fwrite(hFile, var);
format(var, 32, "LawSkill=%d\n",PlayerInfo[playerid][pLawSkill]);fwrite(hFile, var);
format(var, 32, "MechSkill=%d\n",PlayerInfo[playerid][pMechSkill]);fwrite(hFile, var);
format(var, 32, "JackSkill=%d\n",PlayerInfo[playerid][pJackSkill]);fwrite(hFile, var);
format(var, 32, "CarSkill=%d\n",PlayerInfo[playerid][pCarSkill]);fwrite(hFile, var);
format(var, 32, "NewsSkill=%d\n",PlayerInfo[playerid][pNewsSkill]);fwrite(hFile, var);
format(var, 32, "DrugsSkill=%d\n",PlayerInfo[playerid][pDrugsSkill]);fwrite(hFile, var);
format(var, 32, "CookSkill=%d\n",PlayerInfo[playerid][pCookSkill]);fwrite(hFile, var);
format(var, 32, "FishSkill=%d\n",PlayerInfo[playerid][pFishSkill]);fwrite(hFile, var);
format(var, 32, "pSHealth=%.1f\n",PlayerInfo[playerid][pSHealth]);fwrite(hFile, var);
GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]);
format(var, 32, "pHealth=%.1f\n",PlayerInfo[playerid][pHealth]);fwrite(hFile, var);
format(var, 32, "Int=%d\n",PlayerInfo[playerid][pInt]);fwrite(hFile, var);
format(var, 32, "Local=%d\n",PlayerInfo[playerid][pLocal]);fwrite(hFile, var);
format(var, 32, "Team=%d\n",PlayerInfo[playerid][pTeam]);fwrite(hFile, var);
format(var, 32, "Model=%d\n",PlayerInfo[playerid][pModel]);fwrite(hFile, var);
format(var, 32, "WantedPoints=%d\n",WantedPoints[playerid]);fwrite(hFile, var);
format(var, 32, "WantedLevel=%d\n",WantedLevel[playerid]);fwrite(hFile, var);
format(var, 32, "Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var);
format(var, 32, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var);
format(var, 32, "Telefon=%d\n",PlayerInfo[playerid][pPtelefon]);fwrite(hFile, var);
format(var, 32, "GYM=%d\n",PlayerInfo[playerid][pAchievement15]);fwrite(hFile, var);
format(var, 32, "CarPersonal1=%d\n",PlayerInfo[playerid][pPcheiem]);fwrite(hFile, var);
format(var, 32, "CarPersonal2=%d\n",PlayerInfo[playerid][pPcheiem2]);fwrite(hFile, var);
format(var, 64, "Elii=%d\n",PlayerInfo[playerid][pPelikeY]);fwrite(hFile, var);
format(var, 64, "Boatt=%d\n",PlayerInfo[playerid][pPboatkeY]);fwrite(hFile, var);
format(var, 64, "Fwarn=%d\n",PlayerInfo[playerid][pFwarn]);fwrite(hFile, var);
format(var, 32, "CasaPersonala=%d\n",PlayerInfo[playerid][pPcasakey]);fwrite(hFile, var);
format(var, 32, "AfacerePersonala=%d\n",PlayerInfo[playerid][pPbizkey]);fwrite(hFile, var);
if ((PlayerInfo[playerid][pPos_x]==0.0 && PlayerInfo[playerid][pPos_y]==0.0 && PlayerInfo[playerid][pPos_z]==0.0))
{
PlayerInfo[playerid][pPos_x] = 1684.9;
PlayerInfo[playerid][pPos_y] = -2244.5;
PlayerInfo[playerid][pPos_z] = 13.5;
}
if(Spectate[playerid] != 255)
{
PlayerInfo[playerid][pPos_x] = Unspec[playerid][sPx];
PlayerInfo[playerid][pPos_y] = Unspec[playerid][sPy];
PlayerInfo[playerid][pPos_z] = Unspec[playerid][sPz];
PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
}
format(var, 32, "CarLic=%d\n",PlayerInfo[playerid][pCarLic]);fwrite(hFile, var);
format(var, 32, "FlyLic=%d\n",PlayerInfo[playerid][pFlyLic]);fwrite(hFile, var);
format(var, 32, "BoatLic=%d\n",PlayerInfo[playerid][pBoatLic]);fwrite(hFile, var);
format(var, 32, "FishLic=%d\n",PlayerInfo[playerid][pFishLic]);fwrite(hFile, var);
format(var, 32, "GunLic=%d\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var);
format(var, 32, "Gun1=%d\n",PlayerInfo[playerid][pGun1]);fwrite(hFile, var);
format(var, 32, "Gun2=%d\n",PlayerInfo[playerid][pGun2]);fwrite(hFile, var);
format(var, 32, "Gun3=%d\n",PlayerInfo[playerid][pGun3]);fwrite(hFile, var);
format(var, 32, "Gun4=%d\n",PlayerInfo[playerid][pGun4]);fwrite(hFile, var);
format(var, 32, "Ammo1=%d\n",PlayerInfo[playerid][pAmmo1]);fwrite(hFile, var);
format(var, 32, "Ammo2=%d\n",PlayerInfo[playerid][pAmmo2]);fwrite(hFile, var);
format(var, 32, "Ammo3=%d\n",PlayerInfo[playerid][pAmmo3]);fwrite(hFile, var);
format(var, 32, "Ammo4=%d\n",PlayerInfo[playerid][pAmmo4]);fwrite(hFile, var);
format(var, 32, "CarTime=%d\n",PlayerInfo[playerid][pCarTime]);fwrite(hFile, var);
format(var, 32, "PayDay=%d\n",PlayerInfo[playerid][pPayDay]);fwrite(hFile, var);
format(var, 32, "PayDayHad=%d\n",PlayerInfo[playerid][pPayDayHad]);fwrite(hFile, var);
format(var, 32, "CDPlayer=%d\n",PlayerInfo[playerid][pCDPlayer]);fwrite(hFile, var);
format(var, 32, "Wins=%d\n",PlayerInfo[playerid][pWins]);fwrite(hFile, var);
format(var, 32, "Loses=%d\n",PlayerInfo[playerid][pLoses]);fwrite(hFile, var);
format(var, 32, "AlcoholPerk=%d\n",PlayerInfo[playerid][pAlcoholPerk]);fwrite(hFile, var);
format(var, 32, "DrugPerk=%d\n",PlayerInfo[playerid][pDrugPerk]);fwrite(hFile, var);
format(var, 32, "MiserPerk=%d\n",PlayerInfo[playerid][pMiserPerk]);fwrite(hFile, var);
format(var, 32, "PainPerk=%d\n",PlayerInfo[playerid][pPainPerk]);fwrite(hFile, var);
format(var, 32, "TraderPerk=%d\n",PlayerInfo[playerid][pTraderPerk]);fwrite(hFile, var);
format(var, 32, "Tutorial=%d\n",PlayerInfo[playerid][pTut]);fwrite(hFile, var);
format(var, 32, "Mission=%d\n",PlayerInfo[playerid][pMissionNr]);fwrite(hFile, var);
format(var, 64, "Warnings=%d\n",PlayerInfo[playerid][pWarns]);fwrite(hFile, var);
format(var, 32, "Adjustable=%d\n",PlayerInfo[playerid][pAdjustable]);fwrite(hFile, var);
format(var, 32, "Fuel=%d\n",PlayerInfo[playerid][pFuel]);fwrite(hFile, var);
format(var, 32, "Married=%d\n",PlayerInfo[playerid][pMarried]);fwrite(hFile, var);
format(var, 32, "MarriedTo=%s\n",PlayerInfo[playerid][pMarriedTo]);fwrite(hFile, var);
format(var, 32, "Passport=%d\n",PlayerInfo[playerid][pPassport]);fwrite(hFile, var);
format(var, 32, "Carnet2=%d\n",PlayerInfo[playerid][pCarnet2]);fwrite(hFile, var);
format(var, 32, "Buletin=%d\n",PlayerInfo[playerid][pBuletin]);fwrite(hFile, var);
format(var, 32, "Crack=%d\n",PlayerInfo[playerid][pCrack]);fwrite(hFile, var);
format(var, 32, "CabinetTime=%d\n",PlayerInfo[playerid][pCabinetTime]);fwrite(hFile, var);
format(var, 32, "WantedPoints=%d\n",WantedPoints[playerid]);fwrite(hFile, var);
format(var, 32, "WantedLevel=%d\n",WantedLevel[playerid]);fwrite(hFile, var);
format(var, 32, "Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var);
format(var, 32, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var);
format(var, 32, "Telefon=%d\n",PlayerInfo[playerid][pPtelefon]);fwrite(hFile, var);
format(var, 32, "GYM=%d\n",PlayerInfo[playerid][pAchievement15]);fwrite(hFile, var);
format(var, 32, "CarPersonal1=%d\n",PlayerInfo[playerid][pPcheiem]);fwrite(hFile, var);
format(var, 32, "CarPersonal2=%d\n",PlayerInfo[playerid][pPcheiem2]);fwrite(hFile, var);
format(var, 64, "Elii=%d\n",PlayerInfo[playerid][pPelikeY]);fwrite(hFile, var);
format(var, 64, "Boatt=%d\n",PlayerInfo[playerid][pPboatkeY]);fwrite(hFile, var);
format(var, 32, "CasaPersonala=%d\n",PlayerInfo[playerid][pPcasakey]);fwrite(hFile, var);
format(var, 32, "AfacerePersonala=%d\n",PlayerInfo[playerid][pPbizkey]);fwrite(hFile, var);
fclose(hFile);
new loginstring[256];
new loginname[64];
GetPlayerName(playerid,loginname,sizeof(loginname));
format(loginstring,sizeof(loginstring),""wh"Bine ai venit, %s"wh" .Tasteaza parola pentru a te loga:",loginname);
ShowPlayerDialog(playerid,12346,DIALOG_STYLE_PASSWORD,"Login",loginstring,"Logare","Iesire"); // by fly
}
}
return 1;
}[/pawn]
Si
[pawn]//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=OnPlayerLogin=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
public OnPlayerLogin(playerid,password[])
{
if(IsPlayerNPC(playerid)) return SpawnPlayer(playerid);
if(IsPlayerNPC(playerid)) return 1;
// TextDrawHideForPlayer(playerid, SrvStats);
// TextDrawHideForPlayer(playerid, CasetaStats);
new tmp2[256];
new string2[64];
new playername2[MAX_PLAYER_NAME];
new playernamesplit[3][MAX_PLAYER_NAME];
GetPlayerName(playerid, playername2, sizeof(playername2));
split(playername2, playernamesplit, '_');
format(string2, sizeof(string2), "User/%s.ini", playername2);
new File: UserFile = fopen(string2, io_read);
if ( UserFile )
{
new PassData[256];
new keytmp[256], valtmp[256];
fread( UserFile , PassData , sizeof( PassData ) );
keytmp = ini_GetKey( PassData );
if( strcmp( keytmp , "Key" , true ) == 0 )
{
valtmp = ini_GetValue( PassData );
strmid(PlayerInfo[playerid][pKey], valtmp, 0, strlen(valtmp)-1, 255);
}
if(strcmp(PlayerInfo[playerid][pKey],password, true ) == 0 )
{
new key[ 256 ] , val[ 256 ];
new Data[ 256 ];
while ( fread( UserFile , Data , sizeof( Data ) ) )
{
key = ini_GetKey( Data );
if( strcmp( key , "Level" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLevel] = strval( val ); }
if( strcmp( key , "LevelAdmin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdminServer] = strval( val ); }
if( strcmp( key , "LevelHelper2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHelperLevel] = strval( val ); }
if( strcmp( key , "RivaliUcisi" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarKill] = strval( val ); }
if( strcmp( key , "CallRep" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCallRep] = strval( val ); }
if( strcmp( key , "TotalRivaliUcisi" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][ptWarKill] = strval( val ); }
if( strcmp( key , "Awarn" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAwarn] = strval( val ); }
if( strcmp( key , "Masinaq" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMasinaq] = strval( val ); }
if( strcmp( key , "Masinaq2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMasinaq2] = strval( val ); }
if( strcmp( key , "Pwipe" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][Pwipe] = strval( val ); }
if( strcmp( key , "Acclock" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLock] = strval( val ); }
if( strcmp( key , "DonateRank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDonateRank] = strval( val ); }
if( strcmp( key , "UpgradePoints" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][gPupgrade] = strval( val ); }
if( strcmp( key , "ConnectedTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pConnectTime] = strval( val ); }
if( strcmp( key , "Registered" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pReg] = strval( val ); }
if( strcmp( key , "Sex" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSex] = strval( val ); }
if( strcmp( key , "Age" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid]
= strval( val ); }
if( strcmp( key , "Fightstyles" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFstyles] = strval( val ); }
if( strcmp( key , "Walkstyles" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWstyles] = strval( val ); }
if( strcmp( key , "Origin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOrigin] = strval( val ); }
if( strcmp( key , "CK" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCK] = strval( val ); }
if( strcmp( key , "Muted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMuted] = strval( val ); }
if( strcmp( key , "Respect" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pExp] = strval( val ); }
if( strcmp( key , "Money2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBani] = strval( val ); }
if( strcmp( key , "Bank2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAcont] = strval( val ); }
if( strcmp( key , "Crimes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrimes] = strval( val ); }
if( strcmp( key , "Kills" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKills] = strval( val ); }
if( strcmp( key , "Deaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDeaths] = strval( val ); }
if( strcmp( key , "Arrested" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pArrested] = strval( val ); }
if( strcmp( key , "WantedDeaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWantedDeaths] = strval( val ); }
if( strcmp( key , "Phonebook" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhoneBook] = strval( val ); }
if( strcmp( key , "LottoNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLottoNr] = strval( val ); }
if( strcmp( key , "Fishes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishes] = strval( val ); }
if( strcmp( key , "BiggestFish" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBiggestFish] = strval( val ); }
if( strcmp( key , "Job" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJob] = strval( val ); }
if( strcmp( key , "Paycheck" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayCheck] = strval( val ); }
if( strcmp( key , "HeadValue" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHeadValue] = strval( val ); }
if( strcmp( key , "Materials" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMats] = strval( val ); }
if( strcmp( key , "Drugs" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugs] = strval( val ); }
if( strcmp( key , "Lider" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLider] = strval( val ); }
if( strcmp( key , "Membru" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMembru] = strval( val ); }
if( strcmp( key , "FMembru" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFMembru] = strval( val ); }
if( strcmp( key , "Rank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRank] = strval( val ); }
if( strcmp( key , "Char" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pChar] = strval( val ); }
if( strcmp( key , "ContractTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pContractTime] = strval( val ); }
if( strcmp( key , "DetSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDetSkill] = strval( val ); }
if( strcmp( key , "SexSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSexSkill] = strval( val ); }
if( strcmp( key , "BoxSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoxSkill] = strval( val ); }
if( strcmp( key , "LawSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLawSkill] = strval( val ); }
if( strcmp( key , "MechSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMechSkill] = strval( val ); }
if( strcmp( key , "JackSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJackSkill] = strval( val ); }
if( strcmp( key , "CarSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarSkill] = strval( val ); }
if( strcmp( key , "NewsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNewsSkill] = strval( val ); }
if( strcmp( key , "DrugsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugsSkill] = strval( val ); }
if( strcmp( key , "CookSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCookSkill] = strval( val ); }
if( strcmp( key , "FishSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishSkill] = strval( val ); }
if( strcmp( key , "pSHealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSHealth] = floatstr( val ); }
if( strcmp( key , "pHealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHealth] = floatstr( val ); }
if( strcmp( key , "Int" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInt] = strval( val ); }
if( strcmp( key , "Local" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLocal] = strval( val ); }
if( strcmp( key , "Team" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTeam] = strval( val ); }
if( strcmp( key , "Model" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pModel] = strval( val ); }
if( strcmp( key , "CarLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarLic] = strval( val ); }
if( strcmp( key , "FlyLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFlyLic] = strval( val ); }
if( strcmp( key , "BoatLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoatLic] = strval( val ); }
if( strcmp( key , "FishLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishLic] = strval( val ); }
if( strcmp( key , "GunLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGunLic] = strval( val ); }
if( strcmp( key , "Gun1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun1] = strval( val ); }
if( strcmp( key , "Gun2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun2] = strval( val ); }
if( strcmp( key , "Gun3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun3] = strval( val ); }
if( strcmp( key , "Gun4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun4] = strval( val ); }
if( strcmp( key , "Ammo1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo1] = strval( val ); }
if( strcmp( key , "Ammo2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo2] = strval( val ); }
if( strcmp( key , "Ammo3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo3] = strval( val ); }
if( strcmp( key , "Ammo4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo4] = strval( val ); }
if( strcmp( key , "CarTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarTime] = strval( val ); }
if( strcmp( key , "PayDay" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDay] = strval( val ); }
if( strcmp( key , "PayDayHad" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDayHad] = strval( val ); }
if( strcmp( key , "CDPlayer" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCDPlayer] = strval( val ); }
if( strcmp( key , "Wins" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWins] = strval( val ); }
if( strcmp( key , "Loses" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLoses] = strval( val ); }
if( strcmp( key , "AlcoholPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAlcoholPerk] = strval( val ); }
if( strcmp( key , "DrugPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugPerk] = strval( val ); }
if( strcmp( key , "MiserPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMiserPerk] = strval( val ); }
if( strcmp( key , "PainPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPainPerk] = strval( val ); }
if( strcmp( key , "TraderPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTraderPerk] = strval( val ); }
if( strcmp( key , "Warnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarns] = strval( val ); }
if( strcmp( key , "Tutorial" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTut] = strval( val ); }
if( strcmp( key , "Mission" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMissionNr] = strval( val ); }
if( strcmp( key , "Warnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarns] = strval( val ); }
if( strcmp( key , "Adjustable" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdjustable] = strval( val ); }
if( strcmp( key , "Fuel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFuel] = strval( val ); }
if( strcmp( key , "Married" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarried] = strval( val ); }
if( strcmp( key , "MarriedTo" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pMarriedTo], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "Crack" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrack] = strval( val ); }
if( strcmp( key , "Passport" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPassport] = strvalEx( val ); }
if( strcmp( key , "Carnet2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarnet2] = strvalEx( val ); }
if( strcmp( key , "Buletin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBuletin] = strval( val ); }
if( strcmp( key , "CabinetTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCabinetTime] = strval( val ); }
if( strcmp( key , "WantedLevel" , true ) == 0 ) { val = ini_GetValue( Data ); WantedLevel[playerid] = strval( val ); }
if( strcmp( key , "WantedPoints" , true ) == 0 ) { val = ini_GetValue( Data ); WantedPoints[playerid] = strval( val ); }
if( strcmp( key , "Jailed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailed] = strval( val ); }
if( strcmp( key , "JailTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailTime] = strval( val ); }
if( strcmp( key , "Telefon" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPtelefon] = strval( val ); }
if( strcmp( key , "GYM" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement15] = strval( val ); }
if( strcmp( key , "CarPersonal1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPcheiem] = strval( val ); }
if( strcmp( key , "CarPersonal2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPcheiem2] = strval( val ); }
if( strcmp( key , "Elii" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPelikeY] = strval( val ); }
if( strcmp( key , "Boatt" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPboatkeY] = strval( val ); }
if( strcmp( key , "Fwarn" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFwarn] = strval( val ); }
if( strcmp( key , "CasaPersonala" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPcasakey] = strval( val ); }
if( strcmp( key , "AfacerePersonala" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPbizkey] = strval( val ); }
}//end while
fclose(UserFile);//close the file after everything has been read in the while
for (new i = 0; i != MAX_PLAYERS; ++i)
{
if (IsPlayerConnected(i))
{
new sendername[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string),"** (%d) %s s-a logat pe server",playerid,sendername);
ABroadCast(0x418181FF,string,1);
SaveAccounts();
SetTimerEx("creeaza", 7000, 0, "d", playerid);
SetTimerEx("creeaza2", 8000, 0, "d", playerid);
SetTimerEx("wipe", 3000, 0, "d", playerid);
break;
}
break;
}
}
else
{
new loginstring[256];
new loginname[64];
GetPlayerName(playerid,loginname,sizeof(loginname));
format(loginstring,sizeof(loginstring),""wh"Parola Gresita ! Incearca din nou cu mai multa atentie:",loginname);
ShowPlayerDialog(playerid,12347,DIALOG_STYLE_PASSWORD,"Login",loginstring,"Login","Exit"); // by fly
fclose(UserFile);
gPlayerLogTries[playerid] += 1;
if(gPlayerLogTries[playerid] == 3) { SCM ( playerid , COLOR_WHITE , "Ai luat KICK pentru ca ai bagat parola de 3 ori gresita !" ) ; Kick(playerid);}
return 1;
}
PlayerInfo[playerid][pAdjustable] = 0;
ResetPlayerMoney(playerid);
ConsumingMoney[playerid] = 1;
GivePlayerMoney(playerid,PlayerInfo[playerid][pBani]);
CurrentMoney[playerid] = PlayerInfo[playerid][pBani];
if(PlayerInfo[playerid][pReg] == 0)
{
PlayerInfo[playerid][pLevel] = 1;
PlayerInfo[playerid][pExp] = 8;
PlayerInfo[playerid][pPcheiem] = 999;
PlayerInfo[playerid][pPcheiem2] = 999;
PlayerInfo[playerid][pSHealth] = 0.0;
PlayerInfo[playerid][pHealth] = 100.0;
PlayerInfo[playerid][pPos_x] = 246.6;
PlayerInfo[playerid][pPos_y] = -161.9;
PlayerInfo[playerid][pPos_z] = 1029.7;
PlayerInfo[playerid][pInt] = 15;
PlayerInfo[playerid][pLocal] = 255;
PlayerInfo[playerid][pTeam] = 3;
PlayerInfo[playerid][pModel] = 60;
PlayerInfo[playerid][pPtelefon] = 0;
PlayerInfo[playerid][pPcasakey] = 255;
PlayerInfo[playerid][pPbizkey] = 255;
PlayerInfo[playerid][pAcont] = 85000;
PlayerInfo[playerid][pReg] = 1;
GivePlayerMoney(playerid, 3300);
}
if(PlayerInfo[playerid][pLevel] == -999) //autoban
{
SendClientMessage(playerid, COLOR_2RED, "=================================================================");
SendClientMessage(playerid, COLOR_2RED, ">>>>> Cont Banat ! Poti face cerere unban pe www.Sky-Zone.ro <<<<<"); // 1
SendClientMessage(playerid, COLOR_2RED, "=================================================================");
Ban(playerid);
}
else if(PlayerInfo[playerid][pCK] > 0)
{
Kick(playerid);
}
SetPlayerSkills(playerid);
//SetTimerEx("Contract", 720000, 0, "d", playerid);
SetTimerEx("ResetOOC", 5000, 0, "d", playerid);
//SetPlayerAttachedObject(playerid, 3, 19065, 2, 0.120000, 0.040000, -0.003500, 0, 100, 100, 1.4, 1.4, 1.4);
// SendClientMessage(playerid, COLOR_SkyZone, "============================================"); // 1
SendClientMessage(playerid, COLOR_SkyZone, " "); // 1
SendClientMessage(playerid, COLOR_SkyZone, " "); // 1
SendClientMessage(playerid, COLOR_SkyZone, " "); // 1
SendClientMessage(playerid, COLOR_SkyZone, " "); // 1
SendClientMessage(playerid, COLOR_SkyZone, " "); // 1
SendClientMessage(playerid, COLOR_SkyZone, " "); // 1
SendClientMessage(playerid, COLOR_SkyZone, " "); // 1
SendClientMessage(playerid, COLOR_SkyZone, " "); // 1
SendClientMessage(playerid, COLOR_SkyZone, " "); // 1
format(string2, sizeof(string2), "- Bine ai venit %s!",playername2); // 2
SendClientMessage(playerid, COLOR_WHITE,string2);
printf("%s has logged in.",playername2);
// format(string2, sizeof(string2), "- Level: %d.",PlayerInfo[playerid][pLevel]); // 5
// SendClientMessage(playerid, COLOR_SkyZone,string2);
/* if (PlayerInfo[playerid][pAdminServer] == 1)
{
format(string2, sizeof(string2), "- Te-ai Logat cu - Trial Admin Level %d.",PlayerInfo[playerid][pAdminServer]);
SendClientMessage(playerid, COLOR_SkyZone,string2);
}
if (PlayerInfo[playerid][pAdminServer] == 2)
{
format(string2, sizeof(string2), "- Te-ai Logat cu - Advanced Admin level %d.",PlayerInfo[playerid][pAdminServer]);
SendClientMessage(playerid, COLOR_SkyZone,string2);
}
if (PlayerInfo[playerid][pAdminServer] == 3)
{
format(string2, sizeof(string2), "- Te-ai Logat cu - eXtra Admin Level %d.",PlayerInfo[playerid][pAdminServer]);
SendClientMessage(playerid, COLOR_SkyZone,string2);
}
if (PlayerInfo[playerid][pAdminServer] == 4)
{
format(string2, sizeof(string2), "- Te-ai Logat cu - Vip Admin level %d.",PlayerInfo[playerid][pAdminServer]);
SendClientMessage(playerid, COLOR_LIGHTBLUE,string2);
}
if (PlayerInfo[playerid][pAdminServer] == 1337)
{
format(string2, sizeof(string2), "- Te-ai Logat cu - Super Admin Level %d.",PlayerInfo[playerid][pAdminServer]);
SendClientMessage(playerid, COLOR_LIGHTBLUE,string2);
}
if (PlayerInfo[playerid][pAdminServer] == 1338)
{
format(string2, sizeof(string2), "- Te-ai Logat cu - Co-Owner Level %d.",PlayerInfo[playerid][pAdminServer]);
SendClientMessage(playerid, COLOR_LIGHTBLUE,string2);
}
if (PlayerInfo[playerid][pAdminServer] == 1339)
{
format(string2, sizeof(string2), "- Te-ai Logat cu - Owner Level %d.",PlayerInfo[playerid][pAdminServer]);
SendClientMessage(playerid, COLOR_SkyZone,string2);
}
if (PlayerInfo[playerid][pAdminServer] > 0)
{
format(string2, sizeof(string2), "- Ai %d/5 Admin warn's",PlayerInfo[playerid][pAwarn]); // 4
SendClientMessage(playerid, COLOR_SkyZone,string2);
}
if (PlayerInfo[playerid][pHelperLevel] > 0)
{
format(string2, sizeof(string2), "- Te-ai Logat cu - Helper Level %d",PlayerInfo[playerid][pHelperLevel]); // 4
SendClientMessage(playerid, COLOR_SkyZone,string2);
}
format(string2, sizeof(string2), "- Bani: %d$ ",PlayerInfo[playerid][pBani]); // 5
SendClientMessage(playerid, COLOR_SkyZone,string2);
format(string2, sizeof(string2), "- Puncte Respect: %d ",PlayerInfo[playerid][pExp]); // 5
SendClientMessage(playerid, COLOR_SkyZone,string2);
SendClientMessage(playerid, COLOR_SkyZone, "===================="); // 6*/
PlCon2(playerid);
// SCM(playerid,COLOR_WHITE, "Tasteaza {00A1FF}/buycar {FFFFFF}pentru a gasi noul parc de masini personale.");
// SendClientMessage(playerid, COLOR_SkyZone, "Esti protejat de DeathMatch in Spawn."); // 6
PlCon1(playerid);
EngineStatus[playerid] = 0;
LightsStatus[playerid] = 0;
SetPlayerWantedLevel(playerid,WantedLevel[playerid]);
//SetPlayerWeather(playerid, 5);
//SetWorldTime(23);
//SetPlayerAttachedObject(playerid, 3, 19065, 2, 0.120000, 0.040000, -0.003500, 0, 100, 100, 1.4, 1.4, 1.4);
if(WantedLevel[playerid] >=2)
{
SendClientMessage(playerid, COLOR_KOS, "Cand ai iesit aveai Wanted, acum l-ai primit inapoi!");
}
TextDrawHideForPlayer(playerid, TextdrawConnect0);
TextDrawHideForPlayer(playerid, TextdrawConnect1);
TextDrawHideForPlayer(playerid, TextdrawConnect2);
TextDrawHideForPlayer(playerid, TextdrawConnect3);
TextDrawHideForPlayer(playerid, TextdrawConnect4);
TextDrawHideForPlayer(playerid, TextdrawConnect5);
TextDrawHideForPlayer(playerid, TextdrawConnect6);
TextDrawHideForPlayer(playerid, TextdrawConnect7);
TextDrawHideForPlayer(playerid, TextdrawConnect8);
TextDrawHideForPlayer(playerid, TextdrawConnect9);
TextDrawHideForPlayer(playerid, TextdrawConnect10);
TextDrawHideForPlayer(playerid, TextdrawConnect11);
TextDrawHideForPlayer(playerid, TextdrawConnect12);
TextDrawHideForPlayer(playerid, TextdrawConnect13);
TextDrawHideForPlayer(playerid, TextdrawConnect14);
TextDrawHideForPlayer(playerid, TextdrawConnect15);
TextDrawHideForPlayer(playerid, TextdrawConnect16);
TextDrawHideForPlayer(playerid, TextdrawConnect17);
TextDrawHideForPlayer(playerid, TextdrawConnect18);
TextDrawHideForPlayer(playerid, TextdrawConnect19);
TextDrawShowForPlayer(playerid, Textdrawreddy0);
TextDrawShowForPlayer(playerid, Textdrawreddy1);
TextDrawShowForPlayer(playerid, Textdrawreddy2);
TextDrawShowForPlayer(playerid, Textdrawreddy3);
TextDrawShowForPlayer(playerid, Textdrawreddy4);
TextDrawShowForPlayer(playerid, Textdrawreddy5);
TextDrawShowForPlayer(playerid, Textdrawreddy6);
TextDrawShowForPlayer(playerid, Textdrawreddy7);
SetTimerEx("reddy", 500, false, "i", playerid);
SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1);
if(PlayerInfo[playerid][pFstyles] == 1)
{
SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING);
}
if(PlayerInfo[playerid][pFstyles] == 2)
{
SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU);
}
if(PlayerInfo[playerid][pFstyles] == 3)
{
SetPlayerFightingStyle(playerid, FIGHT_STYLE_KNEEHEAD);
}
if(PlayerInfo[playerid][pFstyles] == 4)
{
SetPlayerFightingStyle(playerid, FIGHT_STYLE_GRABKICK);
}
if(PlayerInfo[playerid][pFstyles] == 5)
{
SetPlayerFightingStyle(playerid, FIGHT_STYLE_ELBOW);
}
if(PlayerInfo[playerid][pFstyles] == 6)
{
SetPlayerFightingStyle(playerid, FIGHT_STYLE_NORMAL);
}
if(PlayerInfo[playerid][pWstyles] == 1)
{
SetPlayerWalkingStyle(playerid, WALK_DEFAULT);
}
if(PlayerInfo[playerid][pWstyles] == 2)
{
SetPlayerWalkingStyle(playerid, WALK_NORMAL);
}
if(PlayerInfo[playerid][pWstyles] == 3)
{
SetPlayerWalkingStyle(playerid, WALK_PED);
}
if(PlayerInfo[playerid][pWstyles] == 4)
{
SetPlayerWalkingStyle(playerid, WALK_GANGSTA);
}
if(PlayerInfo[playerid][pWstyles] == 5)
{
SetPlayerWalkingStyle(playerid, WALK_GANGSTA2);
}
if(PlayerInfo[playerid][pWstyles] == 6)
{
SetPlayerWalkingStyle(playerid, WALK_OLD);
}
if(PlayerInfo[playerid][pWstyles] == 7)
{
SetPlayerWalkingStyle(playerid, WALK_FAT_OLD);
}
if(PlayerInfo[playerid][pWstyles] == 8)
{
SetPlayerWalkingStyle(playerid, WALK_FAT);
}
if(PlayerInfo[playerid][pWstyles] == 9)
{
SetPlayerWalkingStyle(playerid, WALK_LADY);
}
if(PlayerInfo[playerid][pWstyles] == 10)
{
SetPlayerWalkingStyle(playerid, WALK_LADY2);
}
if(PlayerInfo[playerid][pWstyles] == 11)
{
SetPlayerWalkingStyle(playerid, WALK_WHORE);
}
if(PlayerInfo[playerid][pWstyles] == 12)
{
SetPlayerWalkingStyle(playerid, WALK_WHORE2);
}
if(PlayerInfo[playerid][pWstyles] == 13)
{
SetPlayerWalkingStyle(playerid, WALK_DRUNK);
}
if(gTeam[playerid] == 0)
{
gTeam[playerid] = 3;
}
else
{
gTeam[playerid] = PlayerInfo[playerid][pTeam];
}
gPlayerLogged[playerid] = 1; // fly
SpawnPlayer(playerid);
// format(tmp2, sizeof(tmp2), "~w~Bine ai Venit ~n~~r~~h~ %s", playername2);
DateProp(playerid);
// GameTextForPlayer(playerid, tmp2, 300, 1);
SendClientMessage(playerid, COLOR_YELLOW, motd);
if(PlayerInfo[playerid][pFMembru] < 255)
{
format(tmp2, sizeof(tmp2), "Family MOTD: %s.", FamilyInfo[PlayerInfo[playerid][pFMembru]][FamilyMOTD]);
SendClientMessage(playerid, COLOR_YELLOW, tmp2);
}
//reset player car pos on connect
/* new car1;
new car2;
car1 = PlayerInfo[playerid][pPcheiem];
car2 = PlayerInfo[playerid][pPcheiem2];
if (car1 == 0){ }
else
{
SetVehicleToRespawn(car1);
// SetVehiclePos(car1,CarInfo[car1][cLocationx],CarInfo[car1][cLocationy],CarInfo[car1][cLocationz]);
}
if (car2 == 0){ }
else
{
// SetVehiclePos(car2,CarInfo[car2][cLocationx],CarInfo[car2][cLocationy],CarInfo[car2][cLocationz]);-5500
SetVehicleToRespawn(car2);
}
if(PlayerInfo[playerid][pAdminServer] >= 1339)
{
IsPlayerAdmin(playerid);
}*/
}
return 1;
}[/pawn]
Ma puteti ajuta?
Multumesc!
Link to comment
Share on other sites
4 answers to this question
Recommended Posts