PHP код:
public OnPlayerSpawn(playerid)
{
if(PlayerInfo[playerid][pAccount] < 0)
{
SetPlayerSkin(playerid, 137);
}
if(GetPlayerMoney(playerid) < 0)
{
SetPlayerSkin(playerid, 137);
}
if(PlayerInfo[playerid][pLevel] >= 2)
{
SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
}
SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
TextDrawShowForPlayer(playerid, Balkan);
TextDrawShowForPlayer(playerid, Zastava1);
TextDrawShowForPlayer(playerid, Zastava2);
TextDrawShowForPlayer(playerid, Zastava3);
TextDrawShowForPlayer(playerid, Zastava4);
TextDrawShowForPlayer(playerid, Zastava5);
TextDrawShowForPlayer(playerid, Zastava6);
TextDrawShowForPlayer(playerid, Zastava7);
TextDrawShowForPlayer(playerid, Forum10);
TextDrawShowForPlayer(playerid, Vreme);
TextDrawShowForPlayer(playerid, Datum);
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
TextDrawHideForPlayer(playerid, Te0);
TextDrawHideForPlayer(playerid, Te1);
TextDrawHideForPlayer(playerid, Te2);
TextDrawHideForPlayer(playerid, Te3);
TextDrawHideForPlayer(playerid, Te4);
TextDrawHideForPlayer(playerid, login101);
TextDrawHideForPlayer(playerid, login102);
TextDrawHideForPlayer(playerid, login103);
TextDrawHideForPlayer(playerid, login104);
TextDrawHideForPlayer(playerid, login105);
TextDrawHideForPlayer(playerid, login106);
TextDrawHideForPlayer(playerid, login107);
TextDrawHideForPlayer(playerid, login108);
TextDrawHideForPlayer(playerid, login109);
TextDrawHideForPlayer(playerid, login110);
TextDrawHideForPlayer(playerid, login111);
TextDrawHideForPlayer(playerid, login112);
TextDrawHideForPlayer(playerid, login113);
TextDrawHideForPlayer(playerid, login114);
TextDrawHideForPlayer(playerid, login115);
TextDrawHideForPlayer(playerid, login116);
TextDrawHideForPlayer(playerid, login117);
TextDrawHideForPlayer(playerid, login118);
TextDrawHideForPlayer(playerid, login119);
TextDrawHideForPlayer(playerid, login120);
TextDrawHideForPlayer(playerid, login121);
TextDrawHideForPlayer(playerid, login122);
TextDrawHideForPlayer(playerid, login123);
TextDrawHideForPlayer(playerid, login124);
TextDrawHideForPlayer(playerid, login125);
TextDrawHideForPlayer(playerid, login126);
TextDrawHideForPlayer(playerid, login127);
TextDrawHideForPlayer(playerid, login128);
TextDrawShowForPlayer(playerid, Textdraw3);
TextDrawShowForPlayer(playerid, Textdraw4);
TextDrawShowForPlayer(playerid, Textdraw5);
TextDrawShowForPlayer(playerid, Textdraw6);
TextDrawShowForPlayer(playerid, Textdraw7);
TextDrawShowForPlayer(playerid, Textdraw8);
TextDrawShowForPlayer(playerid, Textdraw9);
TextDrawShowForPlayer(playerid, SaneK0);
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
if(!gPlayerAnimLibsPreloaded[playerid])
{
PreloadAnimLib(playerid,"BOMBER");
PreloadAnimLib(playerid,"RAPPING");
PreloadAnimLib(playerid,"SHOP");
PreloadAnimLib(playerid,"BEACH");
PreloadAnimLib(playerid,"SMOKING");
PreloadAnimLib(playerid,"FOOD");
PreloadAnimLib(playerid,"ON_LOOKERS");
PreloadAnimLib(playerid,"DEALER");
PreloadAnimLib(playerid,"CRACK");
PreloadAnimLib(playerid,"CARRY");
PreloadAnimLib(playerid,"COP_AMBIENT");
PreloadAnimLib(playerid,"PARK");
PreloadAnimLib(playerid,"INT_HOUSE");
PreloadAnimLib(playerid,"FOOD");
PreloadAnimLib(playerid,"PED");
PreloadAnimLib(playerid,"MISC");
PreloadAnimLib(playerid,"BLOWJOBZ");
PreloadAnimLib(playerid,"RIFLE");
PreloadAnimLib(playerid,"UZI");
PreloadAnimLib(playerid,"SHOTGUN");
PreloadAnimLib(playerid,"COLT45");
PreloadAnimLib(playerid,"SILENCED");
PreloadAnimLib(playerid,"GYMNASIUM");
PreloadAnimLib(playerid,"PARK");
PreloadAnimLib(playerid,"BSKTBALL");
PreloadAnimLib(playerid,"GANGS");
PreloadAnimLib(playerid,"FIGHT_D");
PreloadAnimLib(playerid,"PAULNMAC");
gPlayerAnimLibsPreloaded[playerid] = 1;
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
InitLockDoors(playerid);
STDPlayer[playerid] = 0;
gTeam[playerid] = PlayerInfo[playerid][pTeam];
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if (gTeam[playerid] == 4)
{
gTeam[playerid] = 3;
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
if(gPlayerLogged[playerid] == 0 && IsPlayerNPC(playerid) != 1)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "** Ovaj server zahteva prvo da se prijavite pre spawnanja (Kikovan) **");
KickPlayer[playerid] = 1;
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
if(gTeam[playerid] == 20 && PlayerInfo[playerid][pLeader] < 20)
{
MedicBill[playerid] = 0;
new rand = random(sizeof(CIV));
SendClientMessage(playerid, COLOR_LIGHTRED, "Niste prihvaceni Lider, sada ste civil !");
PlayerInfo[playerid][pTeam] = 3;
gTeam[playerid] = 3;
SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo[playerid][pModel] = CIV[rand];
SpawnPlayer(playerid);
}
if(gTeam[playerid] == 5)
{
if(PlayerInfo[playerid][pMember] < 20)
{
MedicBill[playerid] = 0;
new rand = random(sizeof(CIV));
SendClientMessage(playerid, COLOR_LIGHTRED, "Niste clan Organizacije, sada ste civil !");
PlayerInfo[playerid][pTeam] = 3;
gTeam[playerid] = 3;
SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo[playerid][pModel] = CIV[rand];
SpawnPlayer(playerid);
}
}
if(gTeam[playerid] == 10)
{
if(PlayerInfo[playerid][pMember] != 20)
{
MedicBill[playerid] = 0;
new rand = random(sizeof(CIV));
SendClientMessage(playerid, COLOR_LIGHTRED, "Niste clan ove agencije, sada ste civil !");
PlayerInfo[playerid][pTeam] = 3;
gTeam[playerid] = 3;
SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo[playerid][pModel] = CIV[rand];
SpawnPlayer(playerid);
}
}
/*if(gTeam[playerid] == 2 && PlayerInfo[playerid][pMember] > 3)
{
MedicBill[playerid] = 0;
new rand = random(sizeof(CIV));
SendClientMessage(playerid, COLOR_LIGHTRED, "Niste se prijavili za Policiju / FBI / SWAT, sada ste civil !");
PlayerInfo[playerid][pTeam] = 3;
gTeam[playerid] = 3;
SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo[playerid][pModel] = CIV[rand];
SpawnPlayer(playerid);
}
if(gTeam[playerid] == 3)
{
if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pLeader] > 0)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Niste clan Org, premjesteni ste na odgovarajucu Klasu + Char !");
MedicBill[playerid] = 0;
new model = PlayerInfo[playerid][pChar];
if(PlayerInfo[playerid][pMember] == 1) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 2) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 3) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 4) { SetSpawnInfo(playerid, 1, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 1; gTeam[playerid] = 1; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 5) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 7) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 8) { SetSpawnInfo(playerid, 10, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 10; gTeam[playerid] = 10; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 9) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 10) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 14) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 15) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 16) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 1) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 2) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 3) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 4) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 5) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 7) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 8) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 9) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 10) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 16) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
SpawnPlayer(playerid);
}
}
if(PlayerInfo[playerid][pChar] > 0) { SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]); }
else { SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]); }*/
SetPlayerWeapons(playerid);
SetPlayerSpawn(playerid);
//SetPlayerToTeamColor(playerid);
PlayerFixRadio(playerid);
/*
if(MapIconsShown[playerid] != 1)
{
MapIconsShown[playerid] = 1;
for(new i = 0; i < sizeof(BizzInfo); i++)
{
SetPlayerMapIcon(playerid,i + 1,BizzInfo[i][bEntranceX],BizzInfo[i][bEntranceY],BizzInfo[i][bEntranceZ],56,YELLOW);
}
for(new i = 0; i < sizeof(SBizzInfo); i++)
{
SetPlayerMapIcon(playerid,i + 20,SBizzInfo[i][sbEntranceX],SBizzInfo[i][sbEntranceY],SBizzInfo[i][sbEntranceZ],56,COLOR_ZELENKASTA);
}
}*/
return 1;
}
PHP код:
public OnPlayerConnect(playerid)
{
AfkCheck[playerid] = 0;
new plname[MAX_PLAYER_NAME];
GetPlayerName(playerid, plname, sizeof(plname));
new string[256];
new h1,h2,h3,h4,h5,h6,h7,h8,h9;
h1 = strfind(plname, "OVO SE DONIRA", true)
h2 = strfind(plname, "OVO SE DONIRA", true);
h3 = strfind(plname, "OVO SE DONIRA", true);
h4 = strfind(plname, "OVO SE DONIRA", true);
h5 = strfind(plname, "OVO SE DONIRA", true);
h6 = strfind(plname, "OVO SE DONIRA", true);
h7 = strfind(plname, "OVO SE DONIRA", true);
h8 = strfind(plname, "OVO SE DONIRA", true);
h9 = strfind(plname, "OVO SE DONIRA", true);
new namestring = strfind(plname, "_", true);
if(h1 == -1 && h2 == -1 && h3 == -1 && h4 == -1 && h5 == -1 && h6 == -1 && h7 && h8 && h9 == -1 && namestring == -1)
{
SendClientMessage(playerid, COLOR_YELLOW, " Vase ime nije prihvatljivo.");
SendClientMessage(playerid, COLOR_YELLOW, "Podsetnik: Vase ime mora biti u formatu Ime_Prezime.");
Kick(playerid);
return 1;
}
PlayerInfo[playerid][pKredit1] = 0;
gPlayerUsingLoopingAnim[playerid] = 0;
gPlayerAnimLibsPreloaded[playerid] = 0;
IsInBus[playerid] = 0;
PlayerInfo[playerid][pViptime] = 0;
prisustvuje[playerid] = 0;
SetTimerEx("Autorepair",3000,true,"d",playerid);
SetTimerEx("HeltiArmorUpdate",3000,true,"d",playerid);
IsOnePlayAnim[playerid] = 0;
SetPlayerArmour(playerid, 0);
SetPlayerHealth(playerid, 100);
//------------ Prikazuje Zone tj mesta gde se igrac nalazi
GPSTimer[playerid]=SetTimerEx("GPSistem", 500, 1,"i",playerid)
GPSTD[playerid] = TextDrawCreate(497.000000, 135.000000, "~g~100%");
TextDrawBackgroundColor(GPSTD[playerid], 255);
TextDrawFont(GPSTD[playerid], 2);
TextDrawLetterSize(GPSTD[playerid], 0.329999, 1.300000);
TextDrawColor(GPSTD[playerid], 16777215);
TextDrawSetOutline(GPSTD[playerid], 1);
TextDrawSetProportional(GPSTD[playerid], 1);
TextDrawSetShadow(GPSTD[playerid], 1);
//------------ Isto zone na nasem
GPSSTimer[playerid]=SetTimerEx("GPSSistem", 500, 1,"i",playerid)
Grad[playerid] = TextDrawCreate(497.000000, 115.000000, "~g~100%");
TextDrawBackgroundColor(Grad[playerid], 255);
TextDrawFont(Grad[playerid], 2);
TextDrawLetterSize(Grad[playerid], 0.329999, 1.300000);
TextDrawColor(Grad[playerid], 16777215);
TextDrawSetOutline(Grad[playerid], 1);
TextDrawSetProportional(Grad[playerid], 1);
TextDrawSetShadow(Grad[playerid], 1);
//------------------
//------------ Prikazuje kes od Banke
CosakTimer[playerid]=SetTimerEx("Cosak", 800,1,"i", playerid);
//--Pare sistem--
pare0[playerid] = TextDrawCreate(497.000000, 97.000000, "$0000000");
TextDrawBackgroundColor(pare0[playerid], 255);
TextDrawFont(pare0[playerid], 2);
TextDrawLetterSize(pare0[playerid], 0.280000, 1.100000);// 0.5, 1.6
TextDrawColor(pare0[playerid], -32568);
TextDrawSetOutline(pare0[playerid], 1);
TextDrawSetProportional(pare0[playerid], 1);
//------------
//zatvorvremetimer = SetTimer("ZatvorVreme", 1000, true);
//zatvorvremetimer = SetTimerEx("ZatvorVreme", 1000,1,"i", playerid);
TextDrawShowForPlayer(playerid, plus);
//---- Plaza bazen ]
//PlayAudioStreamForPlayer(playerid, "http://streaming.tdiradio.com:9000",127.8376,-1914.8425,4.3518, 80, 1);
PlayAudioStreamForPlayer(playerid, "http://radios64.streaming.rs:9100/listen.pls",2534.6599,-75.3482,47.3820, 60, 1);// Za caffe Bar u Novom Sadu
//------------- obrisani objekti -------------
// *****************************************************************************
kucadel[playerid]=9999;
gActivePlayers[playerid]++;
numplayers++;
SelectChar[playerid] = 0; HidePM[playerid] = 0; PhoneOnline[playerid] = 0;
SelectCharID[playerid] = 0; SelectCharPlace[playerid] = 0; ChosenSkin[playerid] = 0;
GettingJob[playerid] = 0; GuardOffer[playerid] = 999; GuardPrice[playerid] = 0;
ApprovedLawyer[playerid] = 0; CallLawyer[playerid] = 0; WantLawyer[playerid] = 0;
KickPlayer[playerid] = 0; CurrentMoney[playerid] = 0; UsedFind[playerid] = 0;
CP[playerid] = 0; RCP[playerid] = 0; Robbed[playerid] = 0; SpawnChange[playerid] = 1;
RobbedTime[playerid] = 0; CarOffer[playerid] = 999; CarPrice[playerid] = 0; CarID[playerid] = 0; CarCalls[playerid] = 0;
MoneyMessage[playerid] = 0; Condom[playerid] = 0; Rope[playerid] = 0; Povez[playerid] = 0;
STDPlayer[playerid] = 0; SexOffer[playerid] = 999; SexPrice[playerid] = 0;
RepairOffer[playerid] = 999; RepairPrice[playerid] = 0; RepairCar[playerid] = 0;
TalkingLive[playerid] = 255; LiveOffer[playerid] = 999; TakingLesson[playerid] = 0;
RefillOffer[playerid] = 999; RefillPrice[playerid] = 0; MapIconsShown[playerid] = 1;
DrugOffer[playerid] = 999; PlayerCuffed[playerid] = 0; PlayerCuffedTime[playerid] = 0;
DrugPrice[playerid] = 0; RegistrationStep[playerid] = 0; OnCK[playerid] = 999; GettingCK[playerid] = 999;
DrugGram[playerid] = 0; ConnectedToPC[playerid] = 0; OrderReady[playerid] = 0;
JailPrice[playerid] = 0; MedicTime[playerid] = 0; NeedMedicTime[playerid] = 0; MedicBill[playerid] = 0; GotHit[playerid] = 0;
WantedPoints[playerid] = 0; GoChase[playerid] = 999; GetChased[playerid] = 999; PlacedNews[playerid] = 0;
OnDuty[playerid] = 0; WantedLevel[playerid] = 0; tactical[playerid] = 0; swat[playerid] = 0; TestFishes[playerid] = 0;
BoxWaitTime[playerid] = 0; SchoolSpawn[playerid] = 0; ChangePos2[playerid][1] = 0;
SafeTime[playerid] = 60; TransportDuty[playerid] = 0; PlayerTied[playerid] = 0; PlayerBlind[playerid] = 0; PlayerFreezed[playerid] = 0; IgracKrade[playerid] = 0;
BusCallTime[playerid] = 0; TaxiCallTime[playerid] = 0; MedicCallTime[playerid] = 0; MechanicCallTime[playerid] = 0;
BusrouteEast[playerid][0] = 0; BusrouteWest[playerid][0] = 0; BusShowLocation[playerid][0] = 0; BusShowLocationC[playerid] = 0;
FindTimePoints[playerid] = 0; FindTime[playerid] = 0; JobDuty[playerid] = 0;
Mobile[playerid] = 255; BoxOffer[playerid] = 999; PlayerBoxing[playerid] = 0;
Spectate[playerid] = 255; PlayerDrunk[playerid] = 0; PlayerDrunkTime[playerid] = 0;
Unspec[playerid][sLocal] = 255; FishCount[playerid] = 0;
WritingPaper[playerid] = 0; WritingPaperNumber[playerid] = 999; WritingLine[playerid] = 0; BringingPaper[playerid] = 0; GotPaper[playerid] = 0;
PaperOffer[playerid] = 999;
ScriptMoney[playerid] = 0; ScriptMoneyUpdated[playerid] = 0;
for (new c=0; c<13; c++) ScriptWeapons[playerid][c] = 0;
ScriptWeaponsUpdated[playerid] = 0;
gLastCar[playerid] = 0; FirstSpawn[playerid] = 1;
gOoc[playerid] = 0; gNews[playerid] = 0; BigEar[playerid] = 0; gDice[playerid] = 0; gFam[playerid] = 0;
gSpeedo[playerid] = 0; gGas[playerid] = 0;
gPlayerLogged[playerid] = 0; gPlayerLogTries[playerid] = 0; gPlayerAccount[playerid] = 0;
gPlayerSpawned[playerid] = 0; PlayerKarting[playerid] = 0; PlayerInKart[playerid] = 0;
PlayerTazeTime[playerid] = 0; PlayerStoned[playerid] = 0;
StartTime[playerid] = 0; TicketOffer[playerid] = 999; TicketMoney[playerid] = 0;
MatsHolding[playerid] = 0; TutTime[playerid] = 0;
TaxiAccepted[playerid] = 999; BusAccepted[playerid] = 999;
PlayerInfo[playerid][pPaket] = 0;
PlayerInfo[playerid][pCash] = dollah; NoFuel[playerid] = 0;
HireCar[playerid] = 9999; GangCar[playerid] = 512; PlayersChannel[playerid] = 999;
TransportValue[playerid] = 0; TransportMoney[playerid] = 0; TransportTime[playerid] = 0; TransportCost[playerid] = 0; TransportDriver[playerid] = 999;
Locator[playerid] = 0;
WatchingTV[playerid] = 0;
Fishes[playerid][pLastFish] = 0; Fishes[playerid][pFishID] = 0;
ProposeOffer[playerid] = 999; MarryWitness[playerid] = 999; MarryWitnessOffer[playerid] = 999; MarriageCeremoney[playerid] = 0; ProposedTo[playerid] = 999; GotProposedBy[playerid] = 999; DivorceOffer[playerid] = 999;
GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]); tactical[playerid] = 0; swat[playerid] = 0; // kupiint
PizzaCallTime[playerid] = 0; bPizza[playerid] = 0; sPizza[playerid] = 0; gEngine[playerid] = 0; FarmerVar[playerid] = 0; FarmerPickup[playerid][0] = 0; SmugglerWork[playerid] = 0; SmuggledDrugs[playerid] = 0; JustDied[playerid] = 0; KnockedDown[playerid] = 0; KupiInt[playerid] = 0; PadobranZeton[playerid] = 0; UnidentifedCall[playerid] = 0;
LicenseOffer[playerid] = 999; LicensePrice[playerid] = 0; LicenseType[playerid] = 0; UsingDrugs[playerid] = 0; AfterTutorial[playerid] = 0;
OwnableCarOffer[playerid] = 999; OwnableCarID[playerid] = 0; OwnableCarPrice[playerid] = 0; BlindFold[playerid] = 0; PlayerIsSweeping[playerid] = 0; PlayerIsCisti[playerid] = 0; AdminDuty[playerid] = 0; GmDuty[playerid] = 0; JustReported[playerid] = 0; PlayerNeedsHelp[playerid] = 0; AdminSpec[playerid] = 0; IsSmoking[playerid] = 0; UsingSmokeAnim[playerid] = 0; ReduceTime[playerid] = 0;
CreatingGun[playerid] = 0; CreatingGunAmmo[playerid] = 0; CreatingGunPrice[playerid] = 0; IsPuttingMaterials[playerid] = 0; IsTakingGun[playerid] = 0; IgracPolaze[playerid] = 0;
InAFoodPlace[playerid] = 0;
PljackaBankuSa[playerid] = 0;
PljackaBankuBez[playerid] = 0;
PljackaTimer[playerid] = 0;
PlayerInfo[playerid][pAlat] = 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][pPasos] = 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] = 50.0;
PlayerInfo[playerid][pPos_x] = 1612.3240;
PlayerInfo[playerid][pPos_y] = -2330.1670;
PlayerInfo[playerid][pPos_z] = 13.5469;
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
PlayerInfo[playerid][pTeam] = 3;
PlayerInfo[playerid][pModel] = 7;
PlayerInfo[playerid][pPnumber] = 0;
PlayerInfo[playerid][pPcarkey] = 999;
PlayerInfo[playerid][pPcarkey2] = 999;
PlayerInfo[playerid][pPcarkey3] = 999;
PlayerInfo[playerid][pPhousekey] = 255;
PlayerInfo[playerid][pPstankey] = 255;
PlayerInfo[playerid][pGangKey] = 255;
PlayerInfo[playerid][pPbiskey] = 255;
PlayerInfo[playerid][pCD] = 0;
PlayerInfo[playerid][pGPS] = 0;
PlayerInfo[playerid][pGPSD] = 0;
PlayerInfo[playerid][pMP3] = 0;
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][pWarns] = 0;
PlayerInfo[playerid][pKazna] = 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], "None", 0, strlen("None"), 255);
PlayerInfo[playerid][pNote1s] = 0;
strmid(PlayerInfo[playerid][pNote2], "None", 0, strlen("None"), 255);
PlayerInfo[playerid][pNote2s] = 0;
strmid(PlayerInfo[playerid][pNote3], "None", 0, strlen("None"), 255);
PlayerInfo[playerid][pNote3s] = 0;
strmid(PlayerInfo[playerid][pNote4], "None", 0, strlen("None"), 255);
PlayerInfo[playerid][pNote4s] = 0;
strmid(PlayerInfo[playerid][pNote5], "None", 0, strlen("None"), 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][pGm] = 0;
PlayerInfo[playerid][pVip] = 0;
PlayerInfo[playerid][pPromoter] = 0;
PlayerInfo[playerid][pPinKod] = 0;
PlayerInfo[playerid][pKredit] = 0;
PlayerInfo[playerid][pEvro] = 0;
PlayerInfo[playerid][pFaktura] = 0;
PlayerInfo[playerid][psFaktura] = 0;
VremeLecenja[playerid] = 0;
PlayerInfo[playerid][pOsiguranje] = 0;
/*poslot[playerid] = 0;
prihvatiorgli[playerid] = -1;
prihvatiorg[playerid] = 0;
aaaorg[playerid] = -1;
Kopa[playerid] = 0;
PonudioRepair[playerid] = 0;
PonudioGorivo[playerid] = 0;
PonudioKola[playerid] = 0;
prevozrude[playerid] = 0;
prevozgvozdja[playerid] = 0;
Tehnicki[playerid] = 0;
TehnickiP[playerid] = 0;
Overa[playerid] = 0;*/
PlayerInfo[playerid][pDinamit] = 0;
LaserProvera[playerid] = 0;
DinamitPostavljen[playerid] = 0;
DinamitPostavljenSA[playerid] = 0;
BgBanka[playerid] = 0;
PlayerInfo[playerid][pBolest1] = 0;
PlayerInfo[playerid][pLekovi] = 0;
PlayerInfo[playerid][pMutiranVreme] = 0;
PlayerInfo[playerid][pMutiran] = 0;
PlayerInfo[playerid][pMSlot] = 0;
PlayerInfo[playerid][pSkill1] = 0;
PlayerInfo[playerid][pSkill2] = 0;
PlayerInfo[playerid][pSkill3] = 0;
PlayerInfo[playerid][pSkill4] = 0;
PlayerInfo[playerid][pSkill5] = 0;
PlayerInfo[playerid][pSkill6] = 0;
PlayerInfo[playerid][pSkill7] = 0;
PlayerInfo[playerid][pSkill8] = 0;
PlayerInfo[playerid][pStil] = 0;
/*Oruzje[playerid] = 0;
salteropstina[playerid] = 0;
usaoint[playerid] = 0;
AskPoslo[playerid] = 0;
portgotot[playerid] = 0;*/
ClearCrime(playerid);
ClearFishes(playerid);
ClearCooking(playerid);
ClearGroceries(playerid);
ClearMarriage(playerid);
SetPlayerHealth(playerid, 80);
/////////////////////////////////////////TEXTDRAW//////////////////////////////////////////////////
TextShow[playerid] = false;
VHSCreated[playerid] = false;
/////////////////////////////////////////////////////////////////////////////////////////////////
SetPlayerColor(playerid,COLOR_GRAD2);
HouseEntered[playerid] = 255;
StanEntered[playerid] = 255;
for(new h = 457; h < sizeof(CarInfo); h++)// car system
{
SetVehicleParamsForPlayer(h,playerid,0,CarInfo[h][cLock]);
}
GetPlayerName(playerid, plname, sizeof(plname));
format(string, sizeof(string), "users/%s.ini", plname);
if(fexist(string))
{
SetTimerEx("randomlogin",1000, false, "i", playerid);
}
else
{
SetTimerEx("TextDrawregistracija1",1500, false, "i", playerid);
}
return 1;
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
forward TextDrawpokazi(playerid);
public TextDrawpokazi(playerid)
{
// *************************
SetPlayerInterior(playerid, 0);
TogglePlayerControllable(playerid, 0);
SetPlayerWeather(playerid, 1);
SetPlayerInterior(playerid, 0);
TogglePlayerControllable(playerid, 0);
PlayerPlaySound(playerid, 1185, 0.0, 0.0, 0.0);//1039
SetPlayerWeather(playerid, 1);
SetTimerEx("TextDrawUnisti",9000, false, "i", playerid);
return 1;
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
forward TextDrawregistracija1(playerid);
public TextDrawregistracija1(playerid)
{
SetPlayerInterior(playerid, 0);
PlayerPlaySound(playerid, 1185, 0.0, 0.0, 0.0);
TogglePlayerControllable(playerid, 0);
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
TextDrawShowForPlayer(playerid, regis0);
TextDrawShowForPlayer(playerid, regis1);
TextDrawShowForPlayer(playerid, regis2);
TextDrawShowForPlayer(playerid, regis3);
TextDrawShowForPlayer(playerid, regis4);
TextDrawShowForPlayer(playerid, regis5);
TextDrawShowForPlayer(playerid, regis6);
SetPlayerPos(playerid, 1270.3291,-1324.8623,15.1634); SetPlayerFacingAngle(playerid, 139.7829);
SetPlayerCameraPos(playerid, 1265.78, -1346.33, 121.22); SetPlayerCameraLookAt(playerid, 1261.66, -1343.50, 119.71);
SetPlayerWeather(playerid, 1);
new plname[MAX_PLAYER_NAME];
GetPlayerName(playerid, plname, sizeof(plname));
SetTimerEx("TextDrawregistracija2",7000, false, "i", playerid);
return 1;
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
forward TextDrawregistracija2(playerid);
public TextDrawregistracija2(playerid)
{
PlayerPlaySound(playerid, 1186, 0.0, 0.0, 0.0);
PlayerPlaySound(playerid, 1183, 0.0, 0.0, 0.0);
TextDrawHideForPlayer(playerid, regis0);
TextDrawHideForPlayer(playerid, regis1);
TextDrawHideForPlayer(playerid, regis2);
TextDrawHideForPlayer(playerid, regis3);
TextDrawHideForPlayer(playerid, regis4);
TextDrawHideForPlayer(playerid, regis5);
TextDrawHideForPlayer(playerid, regis6);
SetPlayerInterior(playerid, 0);
TogglePlayerControllable(playerid, 0);
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
TextDrawShowForPlayer(playerid, Te0);
TextDrawShowForPlayer(playerid, regis10);
TextDrawShowForPlayer(playerid, regis11);
TextDrawShowForPlayer(playerid, regis12);
TextDrawShowForPlayer(playerid, regis13);
TextDrawShowForPlayer(playerid, regis14);
TextDrawShowForPlayer(playerid, regis15);
TextDrawShowForPlayer(playerid, regis16);
TextDrawShowForPlayer(playerid, regis17);
SetPlayerFacingAngle(playerid, 139.7829);
SetPlayerPos(playerid, 1192.6627,-1692.2067,13.1610);
SetPlayerCameraPos(playerid, 1151.18, -1692.61, 34.58);
SetPlayerCameraLookAt(playerid, 1152.99, -1697.27, 32.49);
SetPlayerWeather(playerid, 1);
new plname[MAX_PLAYER_NAME];
GetPlayerName(playerid, plname, sizeof(plname));
SetTimerEx("TextDrawregistracija4",9000, false, "i", playerid);
return 1;
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
forward TextDrawregistracija4(playerid);
public TextDrawregistracija4(playerid)
{
TextDrawHideForPlayer(playerid, regis10);
TextDrawHideForPlayer(playerid, regis11);
TextDrawHideForPlayer(playerid, regis12);
TextDrawHideForPlayer(playerid, regis13);
TextDrawHideForPlayer(playerid, regis14);
TextDrawHideForPlayer(playerid, regis15);
TextDrawHideForPlayer(playerid, regis16);
TextDrawHideForPlayer(playerid, regis17);
SetPlayerInterior(playerid, 0);
TogglePlayerControllable(playerid, 0);
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
TextDrawShowForPlayer(playerid, regis1000);
TextDrawShowForPlayer(playerid, regis1001);
TextDrawShowForPlayer(playerid, regis1002);
TextDrawShowForPlayer(playerid, regis1003);
TextDrawShowForPlayer(playerid, regis1004);
TextDrawShowForPlayer(playerid, regis1005);
TextDrawShowForPlayer(playerid, regis1006);
TextDrawShowForPlayer(playerid, regis1007);
TextDrawShowForPlayer(playerid, regis1008);
TextDrawShowForPlayer(playerid, regis1009);
TextDrawShowForPlayer(playerid, regis1010);
TextDrawShowForPlayer(playerid, regis1011);
TextDrawShowForPlayer(playerid, regis1012);
TextDrawShowForPlayer(playerid, regis1013);
TextDrawShowForPlayer(playerid, regis1014);
TextDrawShowForPlayer(playerid, regis1015);
TextDrawShowForPlayer(playerid, regis1016);
TextDrawShowForPlayer(playerid, regis1017);
TextDrawShowForPlayer(playerid, regis1018);
TextDrawShowForPlayer(playerid, regis1019);
SetPlayerPos(playerid, 394.50, -1526.42, 34.27); SetPlayerFacingAngle(playerid, 139.7829);
SetPlayerCameraPos(playerid, 1636.03, -1358.01, 120.72);
SetPlayerCameraLookAt(playerid, 1631.29, -1356.41, 120.61);
SetPlayerWeather(playerid, 1);
new plname[MAX_PLAYER_NAME];
GetPlayerName(playerid, plname, sizeof(plname));
SetTimerEx("TextDrawregistracija5",9000, false, "i", playerid);
return 1;
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
forward TextDrawregistracija5(playerid);
public TextDrawregistracija5(playerid)
{
PlayerPlaySound(playerid, 1132, 0.0, 0.0, 0.0);
TextDrawHideForPlayer(playerid, regis1000);
TextDrawHideForPlayer(playerid, regis1001);
TextDrawHideForPlayer(playerid, regis1002);
TextDrawHideForPlayer(playerid, regis1003);
TextDrawHideForPlayer(playerid, regis1004);
TextDrawHideForPlayer(playerid, regis1005);
TextDrawHideForPlayer(playerid, regis1006);
TextDrawHideForPlayer(playerid, regis1007);
TextDrawHideForPlayer(playerid, regis1008);
TextDrawHideForPlayer(playerid, regis1009);
TextDrawHideForPlayer(playerid, regis1010);
TextDrawHideForPlayer(playerid, regis1011);
TextDrawHideForPlayer(playerid, regis1012);
TextDrawHideForPlayer(playerid, regis1013);
TextDrawHideForPlayer(playerid, regis1014);
TextDrawHideForPlayer(playerid, regis1015);
TextDrawHideForPlayer(playerid, regis1016);
TextDrawHideForPlayer(playerid, regis1017);
TextDrawHideForPlayer(playerid, regis1018);
TextDrawHideForPlayer(playerid, regis1019);
TextDrawHideForPlayer(playerid, regis1000);
TextDrawHideForPlayer(playerid, Te0);
TextDrawHideForPlayer(playerid, regis10);
TextDrawHideForPlayer(playerid, regis12);
TextDrawHideForPlayer(playerid, regis13);
SetPlayerInterior(playerid, 0);
TogglePlayerControllable(playerid, 0);
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
TextDrawShowForPlayer(playerid, regisr0);
TextDrawShowForPlayer(playerid, regisr1);
TextDrawShowForPlayer(playerid, regisr2);
TextDrawShowForPlayer(playerid, regisr3);
SetPlayerPos(playerid, 394.50, -1526.42, 34.27); SetPlayerFacingAngle(playerid, 139.7829);
SetPlayerCameraPos(playerid, 1636.03, -1358.01, 120.72);
SetPlayerCameraLookAt(playerid, 1631.29, -1356.41, 120.61);
SetPlayerWeather(playerid, 1);
new plname[MAX_PLAYER_NAME];
GetPlayerName(playerid, plname, sizeof(plname));
SetTimerEx("TextDrawUnisti",5000, false, "i", playerid);
return 1;
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
forward TextDrawUnisti(playerid);
public TextDrawUnisti(playerid)
{
TextDrawHideForPlayer(playerid, regisr0);
TextDrawHideForPlayer(playerid, regisr1);
TextDrawHideForPlayer(playerid, regisr2);
TextDrawHideForPlayer(playerid, regisr3);
//////////////////////////////////////////////////
PlayerPlaySound(playerid, 1132, 0.0, 0.0, 0.0);
TextDrawShowForPlayer(playerid, Te0);
TextDrawShowForPlayer(playerid, Te1);
TextDrawShowForPlayer(playerid, Te2);
TextDrawShowForPlayer(playerid, Te3);
TextDrawShowForPlayer(playerid, Te4);
SetPlayerVirtualWorld(playerid, 0);
new plname[MAX_PLAYER_NAME+100];
new string[128];
GetPlayerName(playerid, plname, sizeof(plname));
format(string, sizeof(string), "users/%s.ini", plname);
if(!fexist(string))
{
gPlayerAccount[playerid] = 0;
new regstring[512];
new regname[64];
GetPlayerName(playerid,regname,sizeof(regname));
format(regstring,sizeof(regstring),"{FFFFFF}Dobrodosao na {00C0FF} Balkan Extreme RolePlay!\n\n{00C0FF}||------------------------------------------------------------||\n\n{00C0FF}-Vase Ime: {FFFFFF}%s\n\n{00C0FF}-Forum: {FFFFFF}balkan-extreme.halofight.com\n\n{00C0FF}-Account: {FFFFFF}Vi nemate registrovan account\n\n{00C0FF}Unesite zeljeni {FFFFFF}password!\n\n{00C0FF}||------------------------------------------------------------||",regname);
ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT,"{00C0FF}Register",regstring,"Register","Exit");
}
else
{
gPlayerAccount[playerid] = 1;
new loginstring[512];
new loginname[64];
GetPlayerName(playerid,loginname,sizeof(loginname));
format(loginstring,sizeof(loginstring),"{FFFFFF}Dobrodosao na {00C0FF}Balkan Extreme RolePlay!\n\n{00C0FF}||------------------------------------------------------------||\n\n{00C0FF}-Vase Ime: {FFFFFF}%s\n\n{00C0FF}-Forum: {FFFFFF}balkan-extreme.halofight.com\n\n{00C0FF}-Account: {FFFFFF}Vas account je registrovan\n\n{00C0FF}-Unesite vas {FFFFFF}password!\n\n{00C0FF}||------------------------------------------------------------||",loginname);
ShowPlayerDialog(playerid,12346,DIALOG_STYLE_PASSWORD,"{00C0FF}Login",loginstring,"Login","Exit");
}
return 1;
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
forward randomlogin(playerid);
public randomlogin(playerid)
{
new RandomStart;
RandomStart = random(6);
switch(RandomStart)
{
case 0:
{
SetPlayerPos(playerid, 1327.7601,-946.7955,38.3527);
SetPlayerFacingAngle(playerid, 139.7829);
SetPlayerCameraPos(playerid, 1374.83, -915.02, 37.12);
SetPlayerCameraLookAt(playerid, 1376.45, -910.67, 38.98);
SetTimerEx("TextDrawpokazi",7, false, "i", playerid);
}
case 1:
{
SetPlayerPos(playerid, 1507.4445,-1661.7773,13.7969);
SetPlayerFacingAngle(playerid, 139.7829);
SetPlayerCameraPos(playerid, 1456.16, -1605.29, 13.38);
SetPlayerCameraLookAt(playerid, 1459.40, -1609.10, 14.64);
SetTimerEx("TextDrawpokazi",7, false, "i", playerid);
}
case 2:
{
SetPlayerPos(playerid, 1974.0229,-1155.0980,20.9518);
SetPlayerFacingAngle(playerid, 139.7829);
SetPlayerCameraPos(playerid, 1876.73, -1308.70, 91.50);
SetPlayerCameraLookAt(playerid, 1879.75, -1304.72, 89.44);
SetTimerEx("TextDrawpokazi",7, false, "i", playerid);
}
case 3:
{
SetPlayerPos(playerid, 1989.7533,-775.2012,132.1034);
SetPlayerFacingAngle(playerid, 139.7829);
SetPlayerCameraPos(playerid, 1987.48, -806.35, 133.87);
SetPlayerCameraLookAt(playerid, 1983.35, -809.17, 133.91);
SetTimerEx("TextDrawpokazi",7, false, "i", playerid);
}
case 4://new
{
SetPlayerPos(playerid, 385.4012,-2031.7555,7.8359);
SetPlayerFacingAngle(playerid, 139.7829);
SetPlayerCameraPos(playerid, 418.62, -1976.08, 3.44);
SetPlayerCameraLookAt(playerid, 414.86, -1979.39, 5.08);
SetTimerEx("TextDrawpokazi",7, false, "i", playerid);
}
case 5:
{
SetPlayerPos(playerid, -240.4429,2610.2747,62.7031);
SetPlayerFacingAngle(playerid, 139.7829);
SetPlayerCameraPos(playerid, -174.86, 2624.77, 64.67);
SetPlayerCameraLookAt(playerid, -177.79, 2628.82, 64.93);
SetTimerEx("TextDrawpokazi",7, false, "i", playerid);
}
}
return 1;
}