[HELP]Problem
#1

Hi all, i use gta rp mode and i have a problem. When i join the server and when i spawn it doesnt shows me textraws, time, date and none command does not work, but after 10-15 seconds it spawns me on the original spawn and all works just fine.
Reply
#2

Look for any timers in your script. i am sure there is a timer which runs for 10-15 secs then Spawns player.
Reply
#3

OnPlayerSpawn
PHP код:
public OnPlayerSpawn(playerid)
{
        if(
PlayerInfo[playerid][pAccount] < 0)
        {
          
SetPlayerSkin(playerid137);
        }
        if(
GetPlayerMoney(playerid) < 0)
        {
          
SetPlayerSkin(playerid137);
        }
        if(
PlayerInfo[playerid][pLevel] >= 2)
        {
          
SetPlayerSkin(playeridPlayerInfo[playerid][pModel]);
        }
        
SetPlayerScore(playeridPlayerInfo[playerid][pLevel]);
    
TextDrawShowForPlayer(playeridBalkan);
    
TextDrawShowForPlayer(playeridZastava1);
    
TextDrawShowForPlayer(playeridZastava2);
    
TextDrawShowForPlayer(playeridZastava3);
    
TextDrawShowForPlayer(playeridZastava4);
    
TextDrawShowForPlayer(playeridZastava5);
    
TextDrawShowForPlayer(playeridZastava6);
    
TextDrawShowForPlayer(playeridZastava7);
    
TextDrawShowForPlayer(playeridForum10);
    
TextDrawShowForPlayer(playeridVreme);
    
TextDrawShowForPlayer(playeridDatum);
  
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
    
TextDrawHideForPlayer(playeridTe0);
    
TextDrawHideForPlayer(playeridTe1);
    
TextDrawHideForPlayer(playeridTe2);
    
TextDrawHideForPlayer(playeridTe3);
    
TextDrawHideForPlayer(playeridTe4);
    
TextDrawHideForPlayer(playeridlogin101);
    
TextDrawHideForPlayer(playeridlogin102);
    
TextDrawHideForPlayer(playeridlogin103);
    
TextDrawHideForPlayer(playeridlogin104);
    
TextDrawHideForPlayer(playeridlogin105);
    
TextDrawHideForPlayer(playeridlogin106);
    
TextDrawHideForPlayer(playeridlogin107);
    
TextDrawHideForPlayer(playeridlogin108);
    
TextDrawHideForPlayer(playeridlogin109);
    
TextDrawHideForPlayer(playeridlogin110);
    
TextDrawHideForPlayer(playeridlogin111);
    
TextDrawHideForPlayer(playeridlogin112);
    
TextDrawHideForPlayer(playeridlogin113);
    
TextDrawHideForPlayer(playeridlogin114);
    
TextDrawHideForPlayer(playeridlogin115);
    
TextDrawHideForPlayer(playeridlogin116);
    
TextDrawHideForPlayer(playeridlogin117);
    
TextDrawHideForPlayer(playeridlogin118);
    
TextDrawHideForPlayer(playeridlogin119);
    
TextDrawHideForPlayer(playeridlogin120);
    
TextDrawHideForPlayer(playeridlogin121);
    
TextDrawHideForPlayer(playeridlogin122);
    
TextDrawHideForPlayer(playeridlogin123);
    
TextDrawHideForPlayer(playeridlogin124);
    
TextDrawHideForPlayer(playeridlogin125);
    
TextDrawHideForPlayer(playeridlogin126);
    
TextDrawHideForPlayer(playeridlogin127);
    
TextDrawHideForPlayer(playeridlogin128);
    
TextDrawShowForPlayer(playeridTextdraw3);
    
TextDrawShowForPlayer(playeridTextdraw4);
    
TextDrawShowForPlayer(playeridTextdraw5);
    
TextDrawShowForPlayer(playeridTextdraw6);
    
TextDrawShowForPlayer(playeridTextdraw7);
    
TextDrawShowForPlayer(playeridTextdraw8);
    
TextDrawShowForPlayer(playeridTextdraw9);
    
TextDrawShowForPlayer(playeridSaneK0);
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
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] == && IsPlayerNPC(playerid) != 1)
    {
        
SendClientMessage(playeridCOLOR_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(playeridCOLOR_LIGHTRED"Niste prihvaceni Lider, sada ste civil !");
        
PlayerInfo[playerid][pTeam] = 3;
        
gTeam[playerid] = 3;
        
SetSpawnInfo(playeridgTeam[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(playeridCOLOR_LIGHTRED"Niste clan Organizacije, sada ste civil !");
            
PlayerInfo[playerid][pTeam] = 3;
            
gTeam[playerid] = 3;
            
SetSpawnInfo(playeridgTeam[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(playeridCOLOR_LIGHTRED"Niste clan ove agencije, sada ste civil !");
            
PlayerInfo[playerid][pTeam] = 3;
            
gTeam[playerid] = 3;
            
SetSpawnInfo(playeridgTeam[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;

Onplayerconnect
PHP код:
public OnPlayerConnect(playerid)
{
    
AfkCheck[playerid] = 0;
    new 
plname[MAX_PLAYER_NAME];
    
GetPlayerName(playeridplnamesizeof(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 == -&& h2 == -&& h3 == -&& h4 == -&& h5 == -&& h6 == -&& h7 && h8 && h9 == -&& namestring == -1)
    {
        
SendClientMessage(playeridCOLOR_YELLOW" Vase ime nije prihvatljivo.");
        
SendClientMessage(playeridCOLOR_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(playerid0);
    
SetPlayerHealth(playerid100);
//------------ Prikazuje Zone tj mesta gde se igrac nalazi
        
GPSTimer[playerid]=SetTimerEx("GPSistem"5001,"i",playerid)
        
GPSTD[playerid] = TextDrawCreate(497.000000135.000000"~g~100%");
        
TextDrawBackgroundColor(GPSTD[playerid], 255);
        
TextDrawFont(GPSTD[playerid], 2);
        
TextDrawLetterSize(GPSTD[playerid], 0.3299991.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"5001,"i",playerid)
        
Grad[playerid] = TextDrawCreate(497.000000115.000000"~g~100%");
        
TextDrawBackgroundColor(Grad[playerid], 255);
        
TextDrawFont(Grad[playerid], 2);
        
TextDrawLetterSize(Grad[playerid], 0.3299991.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.00000097.000000"$0000000");
    
TextDrawBackgroundColor(pare0[playerid], 255);
    
TextDrawFont(pare0[playerid], 2);
    
TextDrawLetterSize(pare0[playerid], 0.2800001.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(playeridplus);
//---- 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.3820601);// Za caffe Bar u Novom Sadu
//------------- obrisani objekti -------------
  
// *****************************************************************************
    
kucadel[playerid]=9999;
    
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] = 0RCP[playerid] = 0Robbed[playerid] = 0SpawnChange[playerid] = 1;
    
RobbedTime[playerid] = 0CarOffer[playerid] = 999CarPrice[playerid] = 0CarID[playerid] = 0CarCalls[playerid] = 0;
     
MoneyMessage[playerid] = 0Condom[playerid] = 0Rope[playerid] = 0Povez[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] = 1;
    
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] = 0PlayerBlind[playerid] = 0PlayerFreezed[playerid] = 0IgracKrade[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] = 255BoxOffer[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;
    
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;
    
TaxiAccepted[playerid] = 999BusAccepted[playerid] = 999;
    
PlayerInfo[playerid][pPaket] = 0;
    
PlayerInfo[playerid][pCash] = dollahNoFuel[playerid] = 0;
    
HireCar[playerid] = 9999GangCar[playerid] = 512PlayersChannel[playerid] = 999;
    
TransportValue[playerid] = 0TransportMoney[playerid] = 0TransportTime[playerid] = 0TransportCost[playerid] = 0TransportDriver[playerid] = 999;
    
Locator[playerid] = 0;
    
WatchingTV[playerid] = 0;
    
Fishes[playerid][pLastFish] = 0Fishes[playerid][pFishID] = 0;
    
ProposeOffer[playerid] = 999MarryWitness[playerid] = 999MarryWitnessOffer[playerid] = 999MarriageCeremoney[playerid] = 0ProposedTo[playerid] = 999GotProposedBy[playerid] = 999DivorceOffer[playerid] = 999;
    
GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]); tactical[playerid] = 0swat[playerid] = 0;                                                                                                                                                          // kupiint
    
PizzaCallTime[playerid] = 0bPizza[playerid] = 0sPizza[playerid] = 0gEngine[playerid] = 0FarmerVar[playerid] = 0FarmerPickup[playerid][0] = 0SmugglerWork[playerid] = 0SmuggledDrugs[playerid] = 0JustDied[playerid] = 0KnockedDown[playerid] = 0KupiInt[playerid] = 0PadobranZeton[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] = 0PlayerIsCisti[playerid] = 0AdminDuty[playerid] = 0GmDuty[playerid] = 0JustReported[playerid] = 0PlayerNeedsHelp[playerid] = 0AdminSpec[playerid] = 0IsSmoking[playerid] = 0UsingSmokeAnim[playerid] = 0ReduceTime[playerid] = 0;
    
CreatingGun[playerid] = 0CreatingGunAmmo[playerid] = 0CreatingGunPrice[playerid] = 0IsPuttingMaterials[playerid] = 0IsTakingGun[playerid] = 0IgracPolaze[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"0strlen("None"), 255);
    
PlayerInfo[playerid][pNote1s] = 0;
    
strmid(PlayerInfo[playerid][pNote2], "None"0strlen("None"), 255);
    
PlayerInfo[playerid][pNote2s] = 0;
    
strmid(PlayerInfo[playerid][pNote3], "None"0strlen("None"), 255);
    
PlayerInfo[playerid][pNote3s] = 0;
    
strmid(PlayerInfo[playerid][pNote4], "None"0strlen("None"), 255);
    
PlayerInfo[playerid][pNote4s] = 0;
    
strmid(PlayerInfo[playerid][pNote5], "None"0strlen("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(playerid80);
    
/////////////////////////////////////////TEXTDRAW//////////////////////////////////////////////////
    
TextShow[playerid] = false;
    
VHSCreated[playerid] = false;
    
/////////////////////////////////////////////////////////////////////////////////////////////////
    
SetPlayerColor(playerid,COLOR_GRAD2);
    
HouseEntered[playerid] = 255;
    
StanEntered[playerid] = 255;
    for(new 
457sizeof(CarInfo); h++)// car system
    
{
        
SetVehicleParamsForPlayer(h,playerid,0,CarInfo[h][cLock]);
    }
    
GetPlayerName(playeridplnamesizeof(plname));
    
format(stringsizeof(string), "users/%s.ini"plname);
    if(
fexist(string))
    {
        
SetTimerEx("randomlogin",1000false"i"playerid);
    }
    else
    {
        
SetTimerEx("TextDrawregistracija1",1500false"i"playerid);
    }
    return 
1;
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
forward TextDrawpokazi(playerid);
public 
TextDrawpokazi(playerid)
{
// *************************
    
SetPlayerInterior(playerid0);
    
TogglePlayerControllable(playerid0);
    
SetPlayerWeather(playerid1);
    
SetPlayerInterior(playerid0);
    
TogglePlayerControllable(playerid0);
    
PlayerPlaySound(playerid11850.00.00.0);//1039
    
SetPlayerWeather(playerid1);
    
SetTimerEx("TextDrawUnisti",9000false"i"playerid);
    return 
1;
    }
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
forward TextDrawregistracija1(playerid);
public 
TextDrawregistracija1(playerid)
{
    
SetPlayerInterior(playerid0);
    
PlayerPlaySound(playerid11850.00.00.0);
    
TogglePlayerControllable(playerid0);
    
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(playeridregis0);
    
TextDrawShowForPlayer(playeridregis1);
    
TextDrawShowForPlayer(playeridregis2);
    
TextDrawShowForPlayer(playeridregis3);
    
TextDrawShowForPlayer(playeridregis4);
    
TextDrawShowForPlayer(playeridregis5);
    
TextDrawShowForPlayer(playeridregis6);
    
SetPlayerPos(playerid1270.3291,-1324.8623,15.1634); SetPlayerFacingAngle(playerid139.7829);
    
SetPlayerCameraPos(playerid1265.78, -1346.33121.22); SetPlayerCameraLookAt(playerid1261.66, -1343.50119.71);
    
SetPlayerWeather(playerid1);
    new 
plname[MAX_PLAYER_NAME];
    
GetPlayerName(playeridplnamesizeof(plname));
    
SetTimerEx("TextDrawregistracija2",7000false"i"playerid);
    return 
1;
    }
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
forward TextDrawregistracija2(playerid);
public 
TextDrawregistracija2(playerid)
{
    
PlayerPlaySound(playerid11860.00.00.0);
    
PlayerPlaySound(playerid11830.00.00.0);
    
TextDrawHideForPlayer(playeridregis0);
    
TextDrawHideForPlayer(playeridregis1);
    
TextDrawHideForPlayer(playeridregis2);
    
TextDrawHideForPlayer(playeridregis3);
    
TextDrawHideForPlayer(playeridregis4);
    
TextDrawHideForPlayer(playeridregis5);
    
TextDrawHideForPlayer(playeridregis6);
    
SetPlayerInterior(playerid0);
    
TogglePlayerControllable(playerid0);
    
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(playeridTe0);
    
TextDrawShowForPlayer(playeridregis10);
    
TextDrawShowForPlayer(playeridregis11);
    
TextDrawShowForPlayer(playeridregis12);
    
TextDrawShowForPlayer(playeridregis13);
    
TextDrawShowForPlayer(playeridregis14);
    
TextDrawShowForPlayer(playeridregis15);
    
TextDrawShowForPlayer(playeridregis16);
    
TextDrawShowForPlayer(playeridregis17);
    
SetPlayerFacingAngle(playerid139.7829);
    
SetPlayerPos(playerid1192.6627,-1692.2067,13.1610);
    
SetPlayerCameraPos(playerid1151.18, -1692.6134.58);
    
SetPlayerCameraLookAt(playerid1152.99, -1697.2732.49);
    
SetPlayerWeather(playerid1);
    new 
plname[MAX_PLAYER_NAME];
    
GetPlayerName(playeridplnamesizeof(plname));
    
SetTimerEx("TextDrawregistracija4",9000false"i"playerid);
    return 
1;
    }
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
forward TextDrawregistracija4(playerid);
public 
TextDrawregistracija4(playerid)
{
    
TextDrawHideForPlayer(playeridregis10);
    
TextDrawHideForPlayer(playeridregis11);
    
TextDrawHideForPlayer(playeridregis12);
    
TextDrawHideForPlayer(playeridregis13);
    
TextDrawHideForPlayer(playeridregis14);
    
TextDrawHideForPlayer(playeridregis15);
    
TextDrawHideForPlayer(playeridregis16);
    
TextDrawHideForPlayer(playeridregis17);
    
SetPlayerInterior(playerid0);
    
TogglePlayerControllable(playerid0);
    
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(playeridregis1000);
    
TextDrawShowForPlayer(playeridregis1001);
    
TextDrawShowForPlayer(playeridregis1002);
    
TextDrawShowForPlayer(playeridregis1003);
    
TextDrawShowForPlayer(playeridregis1004);
    
TextDrawShowForPlayer(playeridregis1005);
    
TextDrawShowForPlayer(playeridregis1006);
    
TextDrawShowForPlayer(playeridregis1007);
    
TextDrawShowForPlayer(playeridregis1008);
    
TextDrawShowForPlayer(playeridregis1009);
    
TextDrawShowForPlayer(playeridregis1010);
    
TextDrawShowForPlayer(playeridregis1011);
    
TextDrawShowForPlayer(playeridregis1012);
    
TextDrawShowForPlayer(playeridregis1013);
    
TextDrawShowForPlayer(playeridregis1014);
    
TextDrawShowForPlayer(playeridregis1015);
    
TextDrawShowForPlayer(playeridregis1016);
    
TextDrawShowForPlayer(playeridregis1017);
    
TextDrawShowForPlayer(playeridregis1018);
    
TextDrawShowForPlayer(playeridregis1019);
    
    
SetPlayerPos(playerid394.50, -1526.4234.27); SetPlayerFacingAngle(playerid139.7829);
    
SetPlayerCameraPos(playerid1636.03, -1358.01120.72);
    
SetPlayerCameraLookAt(playerid1631.29, -1356.41120.61);
    
SetPlayerWeather(playerid1);
    new 
plname[MAX_PLAYER_NAME];
    
GetPlayerName(playeridplnamesizeof(plname));
    
SetTimerEx("TextDrawregistracija5",9000false"i"playerid);
    return 
1;
    }
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
forward TextDrawregistracija5(playerid);
public 
TextDrawregistracija5(playerid)
{
    
PlayerPlaySound(playerid11320.00.00.0);
    
TextDrawHideForPlayer(playeridregis1000);
    
TextDrawHideForPlayer(playeridregis1001);
    
TextDrawHideForPlayer(playeridregis1002);
    
TextDrawHideForPlayer(playeridregis1003);
    
TextDrawHideForPlayer(playeridregis1004);
    
TextDrawHideForPlayer(playeridregis1005);
    
TextDrawHideForPlayer(playeridregis1006);
    
TextDrawHideForPlayer(playeridregis1007);
    
TextDrawHideForPlayer(playeridregis1008);
    
TextDrawHideForPlayer(playeridregis1009);
    
TextDrawHideForPlayer(playeridregis1010);
    
TextDrawHideForPlayer(playeridregis1011);
    
TextDrawHideForPlayer(playeridregis1012);
    
TextDrawHideForPlayer(playeridregis1013);
    
TextDrawHideForPlayer(playeridregis1014);
    
TextDrawHideForPlayer(playeridregis1015);
    
TextDrawHideForPlayer(playeridregis1016);
    
TextDrawHideForPlayer(playeridregis1017);
    
TextDrawHideForPlayer(playeridregis1018);
    
TextDrawHideForPlayer(playeridregis1019);
    
TextDrawHideForPlayer(playeridregis1000);
    
TextDrawHideForPlayer(playeridTe0);
    
TextDrawHideForPlayer(playeridregis10);
    
TextDrawHideForPlayer(playeridregis12);
    
TextDrawHideForPlayer(playeridregis13);
    
SetPlayerInterior(playerid0);
    
TogglePlayerControllable(playerid0);
    
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(playeridregisr0);
    
TextDrawShowForPlayer(playeridregisr1);
    
TextDrawShowForPlayer(playeridregisr2);
    
TextDrawShowForPlayer(playeridregisr3);
    
SetPlayerPos(playerid394.50, -1526.4234.27); SetPlayerFacingAngle(playerid139.7829);
    
SetPlayerCameraPos(playerid1636.03, -1358.01120.72);
    
SetPlayerCameraLookAt(playerid1631.29, -1356.41120.61);
    
SetPlayerWeather(playerid1);
    new 
plname[MAX_PLAYER_NAME];
    
GetPlayerName(playeridplnamesizeof(plname));
    
SetTimerEx("TextDrawUnisti",5000false"i"playerid);
    return 
1;
    }
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
forward TextDrawUnisti(playerid);
public 
TextDrawUnisti(playerid)
    {
    
TextDrawHideForPlayer(playeridregisr0);
    
TextDrawHideForPlayer(playeridregisr1);
    
TextDrawHideForPlayer(playeridregisr2);
    
TextDrawHideForPlayer(playeridregisr3);
    
    
//////////////////////////////////////////////////
    
PlayerPlaySound(playerid11320.00.00.0);
    
TextDrawShowForPlayer(playeridTe0);
    
TextDrawShowForPlayer(playeridTe1);
    
TextDrawShowForPlayer(playeridTe2);
    
TextDrawShowForPlayer(playeridTe3);
    
TextDrawShowForPlayer(playeridTe4);
    
SetPlayerVirtualWorld(playerid0);
    new 
plname[MAX_PLAYER_NAME+100];
    new 
string[128];
    
GetPlayerName(playeridplnamesizeof(plname));
    
format(stringsizeof(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(playerid1327.7601,-946.7955,38.3527);
                  
SetPlayerFacingAngle(playerid139.7829);
                  
SetPlayerCameraPos(playerid1374.83, -915.0237.12);
                  
SetPlayerCameraLookAt(playerid1376.45, -910.6738.98);
                  
SetTimerEx("TextDrawpokazi",7false"i"playerid);
                  }
                  case 
1:
                  {
                  
SetPlayerPos(playerid1507.4445,-1661.7773,13.7969);
                  
SetPlayerFacingAngle(playerid139.7829);
                  
SetPlayerCameraPos(playerid1456.16, -1605.2913.38);
                  
SetPlayerCameraLookAt(playerid1459.40, -1609.1014.64);
                  
SetTimerEx("TextDrawpokazi",7false"i"playerid);
                  }
                  case 
2:
                  {
                  
SetPlayerPos(playerid1974.0229,-1155.0980,20.9518);
                  
SetPlayerFacingAngle(playerid139.7829);
                  
SetPlayerCameraPos(playerid1876.73, -1308.7091.50);
                  
SetPlayerCameraLookAt(playerid1879.75, -1304.7289.44);
                  
SetTimerEx("TextDrawpokazi",7false"i"playerid);
                  }
                  case 
3:
                  {
                  
SetPlayerPos(playerid1989.7533,-775.2012,132.1034);
                  
SetPlayerFacingAngle(playerid139.7829);
                  
SetPlayerCameraPos(playerid1987.48, -806.35133.87);
                  
SetPlayerCameraLookAt(playerid1983.35, -809.17133.91);
                  
SetTimerEx("TextDrawpokazi",7false"i"playerid);
                  }
                  case 
4://new
                  
{
                  
SetPlayerPos(playerid385.4012,-2031.7555,7.8359);
                  
SetPlayerFacingAngle(playerid139.7829);
                  
SetPlayerCameraPos(playerid418.62, -1976.083.44);
                  
SetPlayerCameraLookAt(playerid414.86, -1979.395.08);
                  
SetTimerEx("TextDrawpokazi",7false"i"playerid);
                  }
                  case 
5:
                  {
                  
SetPlayerPos(playerid, -240.4429,2610.2747,62.7031);
                  
SetPlayerFacingAngle(playerid139.7829);
                  
SetPlayerCameraPos(playerid, -174.862624.7764.67);
                  
SetPlayerCameraLookAt(playerid, -177.792628.8264.93);
                  
SetTimerEx("TextDrawpokazi",7false"i"playerid);
                  }
                  }
    return 
1;

Reply
#4

i meant search search for a Timer like SetTimer("OnPlayerSpawn", 15000, false);

your timer may differ then this but will be something like this which makes Spawn delay of 10-15 secs.
Reply
#5

I dont see timer anywhere.
Reply
#6

BUMP!
Reply
#7

BUMP!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)