Spawn problem please help
#1

When i got killed or i kill myself or someone with /kill command, then server spawn player on corrdinates 0,0,0...
How i can change that? Can you give me code and where i put that. Thanks



public OnPlayerDeath(playerid, killerid, reason)
{
JBC_SetPlayerArmour(playerid, 0);
DisablePlayerCheckpoint(playerid);
KillTimer(VuciTimer[playerid]);
PosaoGPS[playerid] = 0;
if(!Policajac(playerid))
{
new Float:Xx,Float:Yy,Float:Zz;
GetPlayerPos(playerid, Xx, Yy, Zz);
DropGun(playerid, GetPlayerWeapon(playerid),GetPlayerAmmo(playerid), Xx,Yy,Zz,GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid));
}
if(killerid != INVALID_PLAYER_ID) // Valid killer, give cash+score
{
PlayerInfo[killerid][pUbistava]++; PlayerInfo[playerid][pSmrti]++;
YokerResetPlayerWeapons(playerid); ResetujVar(playerid);
}
if(WarZapocet == 1)
{
if(PlayerInfo[playerid][pWar] == 1)
{
WarBrojanje2++;
PlayerInfo[killerid][pTrazeniLevel] = 0;
SetPlayerColor(killerid, BELA2);
g_NovacPlus(playerid, 100);
}
else if(PlayerInfo[playerid][pWar] == 2)
{
WarBrojanje1++;
PlayerInfo[killerid][pTrazeniLevel] = 0;
SetPlayerColor(killerid, BELA2);
g_NovacPlus(playerid, 100);
}
}
////////////////////////////////////////////////////////////
if(killerid != INVALID_PLAYER_ID) // Valid killer, give cash+score
{
if(IgracPolicajac(killerid))
{
PlayerInfo[killerid][pTrazeniLevel] = 0;
SetPlayerColor(playerid, 0x2641FEAA);
}
}
////////////////////////////////////////////////////////////
if(!IgracPolicajac(killerid) && IsPlayerConnected(playerid))
{
if(PlayerInfo[killerid][pWar] > 0) return 1;
if(killerid != INVALID_PLAYER_ID) // Valid killer, give cash+score
{

PostaviWanted(killerid, "Ubistvo", "Nepoznat", 3);
}
}
////////////////////////////////////////////////////////////
if(PlayerInfo[killerid][pTrazeniLevel] > 1000)
{
PlayerInfo[killerid][pTrazeniLevel] = 1000;
}
if((!Policajac(killerid) && PlayerInfo[killerid][pUfbi] == 1) && Policajac(playerid))
{
new rand = random(sizeof(RandomZatvor));
JBC_SetPlayerPos(killerid, RandomZatvor[rand][0], RandomZatvor[rand][1], RandomZatvor[rand][2]);
SetPlayerInterior(killerid, 0);
JBC_TogglePlayerControllable(killerid, 0);
freeze[killerid] = SetTimerEx("Freeze",5000, false, "i", killerid);
PlayerInfo[killerid][pZatvor] = 2;
PlayerInfo[killerid][pZatvorenVreme] = 30*60;
new string[256];
format(string, sizeof(string), ""CRVENA"[GA:RP] Zatvoreni ste u zatvor na 30 minuta zbog SK!.");
SCM(killerid, -1, string);
format(string,sizeof(string), ""CRVENA"[GA:RP SK] "SIVA"Igrac %s (ID:%d) je uradio SK nad igracem %s (ID:%d) i zatvoren je na 30 minuta!", GetName(killerid), killerid, GetName(playerid), playerid);
AdminGameMaster(-1, string);
}
////////////////////////////////////////////////////////////
if(PlayerInfo[playerid][pTrazeniLevel] > 0)
{
new string[256];
g_NovacMinus(playerid, PlayerInfo[playerid][pTrazeniLevel]*3000);
SCMF(playerid, -1, ""ZUTA"[INFO] "CRVENA"Izgubili ste %d$ zbog umiranja sa wanted level-om "ZUTA"%d!", PlayerInfo[playerid][pTrazeniLevel]*3000, PlayerInfo[playerid][pTrazeniLevel]);
g_NovacMinus(playerid, PlayerInfo[playerid][pTrazeniLevel]*3000);
PlayerInfo[playerid][pTrazeniLevel] = 0;
format(string,sizeof(string),""CRVENA"[GA:RP] "BELA"Igrac %s je ubijen/se ubio sa wanted level-om!",GetName(playerid));
CFBIPD(-1, string);
SetPlayerColor(playerid, BELA2);
}
////////////////////////////////////////////////////////////
if(IsPlayerConnected(killerid) && GetPlayerState(killerid) == PLAYER_STATE_DRIVER)
{
new string[256];
format(string,sizeof(string), ""CRVENA"[GA:RP Anti DB] "SIVA"Igrac %s (ID:%d) je uradio Drive By nad igracem %s (ID:%d)!", GetName(killerid), killerid, GetName(playerid), playerid);
AdminGameMaster(-1, string);
SetPlayerColor(killerid, COLOR_RED);
}
////////////////////////////////////////////////////////////
if(IsPlayerConnected(killerid) && PlayerInfo[playerid][pLevel] >= 1)
{
new string[256];
format(string,sizeof(string), ""CRVENA"[GA:RP AK] "SIVA"Igrac %s (ID:%d) je ubio igraca %s (ID:%d)", GetName(killerid), killerid, GetName(playerid), playerid);
AdminGameMaster(-1, string);
if(!Policajac(killerid))
{
SetPlayerColor(killerid, COLOR_RED);
}
if(PlayerInfo[playerid][pNarucen] == 1 && (PlayerInfo[killerid][pClan] == 10 || PlayerInfo[killerid][pLider] == 10))
{
g_NovacPlus(killerid, 17000);
SCM(killerid,-1,""SPLAVA"[GA:RP]:"BELA"Ubili ste trazenog igraca i dobili 17 000 $!");
PlayerInfo[killerid][pTrazeniLevel] = 0;
SetPlayerColor(killerid, BELA2);
PlayerInfo[playerid][pNarucen] = 0;
format(string,sizeof(string),"[GA:RP] "ZUTA"Placeni ubica je ubio %s i izvrsio svoj zadatak!", GetName(playerid));
SCMTA(-1,string);
}
}
////////////////////////////////////////////////////////////
if(gPlayerUsingLoopingAnim[playerid])
{
gPlayerUsingLoopingAnim[playerid] = 0;
}

if(InCP[playerid][Idlewood] == 1)
{
KillTimer(g_timer[playerid][Idlewood]);
KillTimer(CountTime[playerid]);
UnderAttack[Idlewood] = 0;
}
if(InCP[playerid][Hospital] == 1)
{
KillTimer(g_timer[playerid][Hospital]);
KillTimer(CountTime[playerid]);
UnderAttack[Hospital] = 0;
}
if(InCP[playerid][Ammunation] == 1)
{
KillTimer(g_timer[playerid][Ammunation]);
KillTimer(CountTime[playerid]);
UnderAttack[Ammunation] = 0;
}
if(InCP[playerid][Stadium] == 1)
{
KillTimer(g_timer[playerid][Stadium]);
KillTimer(CountTime[playerid]);
UnderAttack[Stadium] = 0;
}
////////////////////////////////////////////////////////////
if(reason == 22)
{
if(PlayerInfo[killerid][pPistSkill] >= 0 && PlayerInfo[killerid][pPistSkill] <= 1000)
{
PlayerInfo[killerid][pPistSkill] += 2;
SetPlayerSkills(killerid);
}
}
if(reason == 23)
{
if(PlayerInfo[killerid][pSilenSkill] >= 0 && PlayerInfo[killerid][pSilenSkill] <= 1000)
{
PlayerInfo[killerid][pSilenSkill] += 2;
SetPlayerSkills(killerid);
}
}
if(reason == 24)
{
if(PlayerInfo[killerid][pDesertSkill] >= 0 && PlayerInfo[killerid][pDesertSkill] <= 1000)
{
PlayerInfo[killerid][pDesertSkill] += 2;
SetPlayerSkills(killerid);
}
}
if(reason == 25)
{
if(PlayerInfo[killerid][pShotgSkill] >= 0 && PlayerInfo[killerid][pShotgSkill] <= 1000)
{
PlayerInfo[killerid][pShotgSkill] += 2;
SetPlayerSkills(killerid);
}
}
if(reason == 26)
{
if(PlayerInfo[killerid][pSawnSkill] >= 0 && PlayerInfo[killerid][pSawnSkill] <= 800)
{
PlayerInfo[killerid][pSawnSkill] += 2;
SetPlayerSkills(killerid);
}
}
if(reason == 27)
{
if(PlayerInfo[killerid][pCombSkill] >= 0 && PlayerInfo[killerid][pCombSkill] <= 1000)
{
PlayerInfo[killerid][pCombSkill] += 2;
SetPlayerSkills(killerid);
}
}

if(reason == 28 || reason == 32)
{
if(PlayerInfo[killerid][pUziSkill] >= 0 && PlayerInfo[killerid][pUziSkill] <= 800)
{
PlayerInfo[killerid][pUziSkill] += 2;
SetPlayerSkills(killerid);
}
}

if(reason == 29)
{
if(PlayerInfo[killerid][pSmgSkill] >= 0 && PlayerInfo[killerid][pSmgSkill] <= 1000)
{
PlayerInfo[killerid][pSmgSkill] += 2;
SetPlayerSkills(killerid);
}
}

if(reason == 30)
{
if(PlayerInfo[killerid][pAkSkill] >= 0 && PlayerInfo[killerid][pAkSkill] <= 1000)
{
PlayerInfo[killerid][pAkSkill] += 2;
SetPlayerSkills(killerid);
}
}

if(reason == 31)
{
if(PlayerInfo[killerid][pM4Skill] >= 0 && PlayerInfo[killerid][pM4Skill] <= 1000)
{
PlayerInfo[killerid][pM4Skill] += 2;
SetPlayerSkills(killerid);
}
}
return 1;
}

encode_tires(tire1, tire2, tire3, tire4) return tire1 | (tire2 << 1) | (tire3 << 2) | (tire4 << 3);
Reply
#2

Can you try to use [ CODE ] [/ CODE ] or [ PHP ][/ PHP ] to insert your code? I literally can't understand anything like that.
Reply
#3

show me your OnPlayerSpawn
Reply
#4

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    
JBC_SetPlayerArmour(playerid0);
    
DisablePlayerCheckpoint(playerid);
    
KillTimer(VuciTimer[playerid]);
    
PosaoGPS[playerid] = 0;
    if(!
Policajac(playerid))
    {
        new 
Float:Xx,Float:Yy,Float:Zz;
        
GetPlayerPos(playeridXxYyZz);
        
DropGun(playeridGetPlayerWeapon(playerid),GetPlayerAmmo(playerid), Xx,Yy,Zz,GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid));
    }
    if(
killerid != INVALID_PLAYER_ID// Valid killer, give cash+score
    
{
        
PlayerInfo[killerid][pUbistava]++; PlayerInfo[playerid][pSmrti]++;
        
YokerResetPlayerWeapons(playerid); ResetujVar(playerid);
    }
    if(
WarZapocet == 1)
    {
        if(
PlayerInfo[playerid][pWar] == 1)
        {
            
WarBrojanje2++;
            
PlayerInfo[killerid][pTrazeniLevel] = 0;
            
SetPlayerColor(killeridBELA2);
            
g_NovacPlus(playerid100);
        }
        else if(
PlayerInfo[playerid][pWar] == 2)
        {
            
WarBrojanje1++;
            
PlayerInfo[killerid][pTrazeniLevel] = 0;
            
SetPlayerColor(killeridBELA2);
            
g_NovacPlus(playerid100);
        }
    }
    
////////////////////////////////////////////////////////////
    
if(killerid != INVALID_PLAYER_ID// Valid killer, give cash+score
    
{
        if(
IgracPolicajac(killerid))
        {
            
PlayerInfo[killerid][pTrazeniLevel] = 0;
            
SetPlayerColor(playerid0x2641FEAA);
        }
    }
    
////////////////////////////////////////////////////////////
    
if(!IgracPolicajac(killerid) && IsPlayerConnected(playerid))
    {
        if(
PlayerInfo[killerid][pWar] > 0) return 1;
        if(
killerid != INVALID_PLAYER_ID// Valid killer, give cash+score
        
{
            
PostaviWanted(killerid"Ubistvo""Nepoznat"3);
        }
    }
    
////////////////////////////////////////////////////////////
    
if(PlayerInfo[killerid][pTrazeniLevel] > 1000)
    {
        
PlayerInfo[killerid][pTrazeniLevel] = 1000;
    }
    if((!
Policajac(killerid) && PlayerInfo[killerid][pUfbi] == 1) && Policajac(playerid))
    {
        new 
rand random(sizeof(RandomZatvor));
        
JBC_SetPlayerPos(killeridRandomZatvor[rand][0], RandomZatvor[rand][1], RandomZatvor[rand][2]);
        
SetPlayerInterior(killerid0);
        
JBC_TogglePlayerControllable(killerid0);
        
freeze[killerid] = SetTimerEx("Freeze",5000false"i"killerid);
        
PlayerInfo[killerid][pZatvor] = 2;
        
PlayerInfo[killerid][pZatvorenVreme] = 30*60;
        new 
string[256];
        
format(stringsizeof(string), ""CRVENA"[GA:RP] Zatvoreni ste u zatvor na 30 minuta zbog SK!.");
        
SCM(killerid, -1string);
        
format(string,sizeof(string), ""CRVENA"[GA:RP SK] "SIVA"Igrac %s (ID:%d) je uradio SK nad igracem %s (ID:%d) i zatvoren je na 30 minuta!"GetName(killerid), killeridGetName(playerid), playerid);
        
AdminGameMaster(-1string);
    }
    
////////////////////////////////////////////////////////////
    
if(PlayerInfo[playerid][pTrazeniLevel] > 0)
    {
        new 
string[256];
        
g_NovacMinus(playeridPlayerInfo[playerid][pTrazeniLevel]*3000);
        
SCMF(playerid, -1""ZUTA"[INFO] "CRVENA"Izgubili ste %d$ zbog umiranja sa wanted level-om "ZUTA"%d!"PlayerInfo[playerid][pTrazeniLevel]*3000PlayerInfo[playerid][pTrazeniLevel]);
        
g_NovacMinus(playeridPlayerInfo[playerid][pTrazeniLevel]*3000);
        
PlayerInfo[playerid][pTrazeniLevel] = 0;
        
format(string,sizeof(string),""CRVENA"[GA:RP] "BELA"Igrac %s je ubijen/se ubio sa wanted level-om!",GetName(playerid));
        
CFBIPD(-1string);
        
SetPlayerColor(playeridBELA2);
    }
    
////////////////////////////////////////////////////////////
    
if(IsPlayerConnected(killerid) && GetPlayerState(killerid) == PLAYER_STATE_DRIVER)
    {
        new 
string[256];
        
format(string,sizeof(string), ""CRVENA"[GA:RP Anti DB] "SIVA"Igrac %s (ID:%d) je uradio Drive By nad igracem %s (ID:%d)!"GetName(killerid), killeridGetName(playerid), playerid);
        
AdminGameMaster(-1string);
        
SetPlayerColor(killeridCOLOR_RED);
    }
    
////////////////////////////////////////////////////////////
    
if(IsPlayerConnected(killerid) && PlayerInfo[playerid][pLevel] >= 1)
    {
        new 
string[256];
        
format(string,sizeof(string), ""CRVENA"[GA:RP AK] "SIVA"Igrac %s (ID:%d) je ubio igraca %s (ID:%d)"GetName(killerid), killeridGetName(playerid), playerid);
        
AdminGameMaster(-1string);
        if(!
Policajac(killerid))
        {
            
SetPlayerColor(killeridCOLOR_RED);
        }
        if(
PlayerInfo[playerid][pNarucen] == && (PlayerInfo[killerid][pClan] == 10 || PlayerInfo[killerid][pLider] == 10))
        {
            
g_NovacPlus(killerid17000);
            
SCM(killerid,-1,""SPLAVA"[GA:RP]:"BELA"Ubili ste trazenog igraca i dobili 17 000 $!");
            
PlayerInfo[killerid][pTrazeniLevel] = 0;
            
SetPlayerColor(killeridBELA2);
            
PlayerInfo[playerid][pNarucen] = 0;
            
format(string,sizeof(string),"[GA:RP] "ZUTA"Placeni ubica je ubio %s i izvrsio svoj zadatak!"GetName(playerid));
            
SCMTA(-1,string);
        }
    }
    
////////////////////////////////////////////////////////////
    
if(gPlayerUsingLoopingAnim[playerid])
    {
        
gPlayerUsingLoopingAnim[playerid] = 0;
    }

    if(
InCP[playerid][Idlewood] == 1)
    {
        
KillTimer(g_timer[playerid][Idlewood]);
        
KillTimer(CountTime[playerid]);
        
UnderAttack[Idlewood] = 0;
    }
    if(
InCP[playerid][Hospital] == 1)
    {
        
KillTimer(g_timer[playerid][Hospital]);
        
KillTimer(CountTime[playerid]);
        
UnderAttack[Hospital] = 0;
    }
    if(
InCP[playerid][Ammunation] == 1)
    {
        
KillTimer(g_timer[playerid][Ammunation]);
        
KillTimer(CountTime[playerid]);
        
UnderAttack[Ammunation] = 0;
    }
    if(
InCP[playerid][Stadium] == 1)
    {
        
KillTimer(g_timer[playerid][Stadium]);
        
KillTimer(CountTime[playerid]);
        
UnderAttack[Stadium] = 0;
    }
    
////////////////////////////////////////////////////////////
    
if(reason == 22)
    {
        if(
PlayerInfo[killerid][pPistSkill] >= && PlayerInfo[killerid][pPistSkill] <= 1000)
        {
            
PlayerInfo[killerid][pPistSkill] += 2;
            
SetPlayerSkills(killerid);
        }
    }
    if(
reason == 23)
    {
        if(
PlayerInfo[killerid][pSilenSkill] >= && PlayerInfo[killerid][pSilenSkill] <= 1000)
        {
            
PlayerInfo[killerid][pSilenSkill] += 2;
            
SetPlayerSkills(killerid);
        }
    }
    if(
reason == 24)
    {
        if(
PlayerInfo[killerid][pDesertSkill] >= && PlayerInfo[killerid][pDesertSkill] <= 1000)
        {
            
PlayerInfo[killerid][pDesertSkill] += 2;
            
SetPlayerSkills(killerid);
        }
    }
    if(
reason == 25)
    {
        if(
PlayerInfo[killerid][pShotgSkill] >= && PlayerInfo[killerid][pShotgSkill] <= 1000)
        {
            
PlayerInfo[killerid][pShotgSkill] += 2;
            
SetPlayerSkills(killerid);
        }
    }
    if(
reason == 26)
    {
        if(
PlayerInfo[killerid][pSawnSkill] >= && PlayerInfo[killerid][pSawnSkill] <= 800)
        {
            
PlayerInfo[killerid][pSawnSkill] += 2;
            
SetPlayerSkills(killerid);
        }
    }
    if(
reason == 27)
    {
        if(
PlayerInfo[killerid][pCombSkill] >= && PlayerInfo[killerid][pCombSkill] <= 1000)
        {
            
PlayerInfo[killerid][pCombSkill] += 2;
            
SetPlayerSkills(killerid);
        }
    }

    if(
reason == 28 || reason == 32)
    {
        if(
PlayerInfo[killerid][pUziSkill] >= && PlayerInfo[killerid][pUziSkill] <= 800)
        {
            
PlayerInfo[killerid][pUziSkill] += 2;
            
SetPlayerSkills(killerid);
        }
    }

    if(
reason == 29)
    {
        if(
PlayerInfo[killerid][pSmgSkill] >= && PlayerInfo[killerid][pSmgSkill] <= 1000)
        {
            
PlayerInfo[killerid][pSmgSkill] += 2;
            
SetPlayerSkills(killerid);
        }
    }

    if(
reason == 30)
    {
        if(
PlayerInfo[killerid][pAkSkill] >= && PlayerInfo[killerid][pAkSkill] <= 1000)
        {
            
PlayerInfo[killerid][pAkSkill] += 2;
            
SetPlayerSkills(killerid);
        }
    }

    if(
reason == 31)
    {
        if(
PlayerInfo[killerid][pM4Skill] >= && PlayerInfo[killerid][pM4Skill] <= 1000)
        {
            
PlayerInfo[killerid][pM4Skill] += 2;
            
SetPlayerSkills(killerid);
        }
    }
    return 
1;

Reply
#5

Can you show us the code of OnPlayerSpawn ?
Reply
#6

use this in OnPlayerDeath

PHP код:
SetPlayerSpawn(playerid); 
PHP код:
forward SetPlayerSpawn(playerid);
public 
SetPlayerSpawn(playerid)
{
    if(
IsPlayerConnected(playerid))
    {
        
SetPlayerInterior(playerid0);
        
SetPlayerVirtualWorld(playerid0);
        
SetPlayerPos(playeridx,y,z);
        
SetPlayerFacingAngle(playeridf);
        return 
1;
     }
    return 
1;

Reply
#7

public OnPlayerSpawn(playerid)
{
new race = GetPVarInt(playerid, PVAR_TAG"currentRaceID");
if (race)
{
race -= 2;
if (raceOwners[race] != INVALID_PLAYER_ID)
{
respawnPlayer(playerid, race);
}
}
vozact[playerid] = -1;
RespawnVozila = 0;
PlayerInfo[playerid][pUfbi] = 0;
JBC_SetPlayerArmour(playerid, 0);
BelaBojaIgraca(playerid);
SetPlayerSkills(playerid);
ResetujVar(playerid); UsaoFirma[playerid] = -1;
Gladan[playerid] = 100; Sere[playerid] = 100;
SpawnIgraca(playerid);
///////////////////////////////////////////////////////
if(AdminVozilo[playerid] != -1) DestroyVehicle(AdminVozilo[playerid]), AdminVozilo[playerid] = -1;
///////////////////////////////////////////////////////
if(TextDrawGangZone[playerid] != 1)
{
for(new i = 0; i <= 6; i++)
{
TextDrawShowForPlayer(playerid,SPORUKE[i]);
}
/*TextDrawShowForPlayer(playerid,Logo[0]); TextDrawShowForPlayer(playerid,Logo[1]);
TextDrawShowForPlayer(playerid,Logo[2]); TextDrawShowForPlayer(playerid,Logo[3]); TextDrawShowForPlayer(playerid,Logo[4]);*/
TextDrawShowForPlayer(playerid,Time);
TextDrawShowForPlayer(playerid,OnlineRecord);
/*GangZoneShowForPlayer(playerid, GroveGang, 1671188; GangZoneShowForPlayer(playerid, ballaszonag, -2147418167);
GangZoneShowForPlayer(playerid, tvfzona, -16777017); GangZoneShowForPlayer(playerid, bdtzona, 199);
GangZoneShowForPlayer(playerid, bdtdrogazone, 199);*/
TextDrawGangZone[playerid] = 1;
TextDrawShowForPlayer(playerid, BankaZlato[playerid]);
if(BandaC(playerid) || BandaL(playerid) || MafijasC(playerid) || MafijasL(playerid))
{
//Idlewood
if(tCP[Idlewood] == 4) GangZoneShowForPlayer(playerid, Zone[Idlewood], 0x00CD00AA);
else if(tCP[Idlewood] == 5) GangZoneShowForPlayer(playerid, Zone[Idlewood], 0x6B238EAA);
else if(tCP[Idlewood] == 2) GangZoneShowForPlayer(playerid, Zone[Idlewood], 0xE32E30AA);
else if(tCP[Idlewood] == 9) GangZoneShowForPlayer(playerid, Zone[Idlewood], 0xA02422AA);
else if(tCP[Idlewood] == 11) GangZoneShowForPlayer(playerid, Zone[Idlewood], 0x003EFFAA);
else if(tCP[Idlewood] == 12) GangZoneShowForPlayer(playerid, Zone[Idlewood], 0x000080AA);
else if(tCP[Idlewood] == 13) GangZoneShowForPlayer(playerid, Zone[Idlewood], 0xEEEE00AA);
else if(tCP[Idlewood] == 15) GangZoneShowForPlayer(playerid, Zone[Idlewood], 0xFCFFF0AA);
else if(tCP[Idlewood] == 17) GangZoneShowForPlayer(playerid, Zone[Idlewood], 0xFCD116AA);
else if(tCP[Idlewood] == 19) GangZoneShowForPlayer(playerid, Zone[Idlewood], 0xFF1493AA);
else if(tCP[Idlewood] == 20) GangZoneShowForPlayer(playerid, Zone[Idlewood], 0x000000AA);
else if(tCP[Idlewood] == 3) GangZoneShowForPlayer(playerid, Zone[Idlewood], 0x997a00AA);
else if(tCP[Idlewood] == 0) GangZoneShowForPlayer(playerid, Zone[Idlewood], 0xF5F5F5AA);

//Hospital
if(tCP[Hospital] == 4) GangZoneShowForPlayer(playerid, Zone[Hospital], 0x00CD00AA);
else if(tCP[Hospital] == 5) GangZoneShowForPlayer(playerid, Zone[Hospital], 0x6B238EAA);
else if(tCP[Hospital] == 2) GangZoneShowForPlayer(playerid, Zone[Hospital], 0xE32E30AA);
else if(tCP[Hospital] == 9) GangZoneShowForPlayer(playerid, Zone[Hospital], 0xA02422AA);
else if(tCP[Hospital] == 11) GangZoneShowForPlayer(playerid, Zone[Hospital], 0x003EFFAA);
else if(tCP[Hospital] == 12) GangZoneShowForPlayer(playerid, Zone[Hospital], 0x000080AA);
else if(tCP[Hospital] == 13) GangZoneShowForPlayer(playerid, Zone[Hospital], 0xEEEE00AA);
else if(tCP[Hospital] == 15) GangZoneShowForPlayer(playerid, Zone[Hospital], 0xFCFFF0AA);
else if(tCP[Hospital] == 17) GangZoneShowForPlayer(playerid, Zone[Hospital], 0xFCD116AA);
else if(tCP[Hospital] == 19) GangZoneShowForPlayer(playerid, Zone[Hospital], 0xFF1493AA);
else if(tCP[Hospital] == 20) GangZoneShowForPlayer(playerid, Zone[Hospital], 0x000000AA);
else if(tCP[Hospital] == 3) GangZoneShowForPlayer(playerid, Zone[Hospital], 0x997a00AA);
else if(tCP[Hospital] == 0) GangZoneShowForPlayer(playerid, Zone[Hospital], 0xF5F5F5AA);

//Ammunation
if(tCP[Ammunation] == 4) GangZoneShowForPlayer(playerid, Zone[Ammunation], 0x00CD00AA);
else if(tCP[Ammunation] == 5) GangZoneShowForPlayer(playerid, Zone[Ammunation], 0x6B238EAA);
else if(tCP[Ammunation] == 2) GangZoneShowForPlayer(playerid, Zone[Ammunation], 0xE32E30AA);
else if(tCP[Ammunation] == 9) GangZoneShowForPlayer(playerid, Zone[Ammunation], 0xA02422AA);
else if(tCP[Ammunation] == 11) GangZoneShowForPlayer(playerid, Zone[Ammunation], 0x003EFFAA);
else if(tCP[Ammunation] == 12) GangZoneShowForPlayer(playerid, Zone[Ammunation], 0x000080AA);
else if(tCP[Ammunation] == 13) GangZoneShowForPlayer(playerid, Zone[Ammunation], 0xEEEE00AA);
else if(tCP[Ammunation] == 15) GangZoneShowForPlayer(playerid, Zone[Ammunation], 0xFCFFF0AA);
else if(tCP[Ammunation] == 17) GangZoneShowForPlayer(playerid, Zone[Ammunation], 0xFCD116AA);
else if(tCP[Ammunation] == 19) GangZoneShowForPlayer(playerid, Zone[Ammunation], 0xFF1493AA);
else if(tCP[Ammunation] == 20) GangZoneShowForPlayer(playerid, Zone[Ammunation], 0x000000AA);
else if(tCP[Ammunation] == 3) GangZoneShowForPlayer(playerid, Zone[Ammunation], 0x997a00AA);
else if(tCP[Ammunation] == 0) GangZoneShowForPlayer(playerid, Zone[Ammunation], 0xF5F5F5AA);

//Stadium
if(tCP[Stadium] == 4) GangZoneShowForPlayer(playerid, Zone[Stadium], 0x00CD00AA);
else if(tCP[Stadium] == 5) GangZoneShowForPlayer(playerid, Zone[Stadium], 0x6B238EAA);
else if(tCP[Stadium] == 2) GangZoneShowForPlayer(playerid, Zone[Stadium], 0xE32E30AA);
else if(tCP[Stadium] == 9) GangZoneShowForPlayer(playerid, Zone[Stadium], 0xA02422AA);
else if(tCP[Stadium] == 11) GangZoneShowForPlayer(playerid, Zone[Stadium], 0x003EFFAA);
else if(tCP[Stadium] == 12) GangZoneShowForPlayer(playerid, Zone[Stadium], 0x000080AA);
else if(tCP[Stadium] == 13) GangZoneShowForPlayer(playerid, Zone[Stadium], 0xEEEE00AA);
else if(tCP[Stadium] == 15) GangZoneShowForPlayer(playerid, Zone[Stadium], 0xFCFFF0AA);
else if(tCP[Stadium] == 17) GangZoneShowForPlayer(playerid, Zone[Stadium], 0xFCD116AA);
else if(tCP[Stadium] == 19) GangZoneShowForPlayer(playerid, Zone[Stadium], 0xFF1493AA);
else if(tCP[Stadium] == 20) GangZoneShowForPlayer(playerid, Zone[Stadium], 0x000000AA);
else if(tCP[Stadium] == 3) GangZoneShowForPlayer(playerid, Zone[Stadium], 0x997a00AA);
else if(tCP[Stadium] == 0) GangZoneShowForPlayer(playerid, Zone[Stadium], 0xF5F5F5AA);
}
}
if(PlayerInfo[playerid][pWar] == 1) {
SetPlayerVirtualWorld(playerid, 10);
new rand = random(sizeof(RandomTim1));
JBC_SetPlayerPos(playerid, RandomTim1[rand][0], RandomTim1[rand][1], RandomTim1[rand][2]);
SetPlayerInterior(playerid, 10);
YokerGivePlayerWeapon(playerid, 24, 200);
YokerGivePlayerWeapon(playerid, 25, 200);
YokerGivePlayerWeapon(playerid, 31, 500);
YokerGivePlayerWeapon(playerid, 34, 500);
JBC_SetPlayerHealth(playerid, 100);
JBC_SetPlayerArmour(playerid, 100);
SetPlayerSkin(playerid, 285);
return 1;
} else if(PlayerInfo[playerid][pWar] == 2) {
SetPlayerVirtualWorld(playerid, 10);
new rand2 = random(sizeof(RandomTim2));
JBC_SetPlayerPos(playerid, RandomTim2[rand2][0], RandomTim2[rand2][1], RandomTim2[rand2][2]);
SetPlayerInterior(playerid, 10);
YokerGivePlayerWeapon(playerid, 24, 200);
YokerGivePlayerWeapon(playerid, 25, 200);
YokerGivePlayerWeapon(playerid, 31, 500);
YokerGivePlayerWeapon(playerid, 34, 500);
JBC_SetPlayerHealth(playerid, 100);
JBC_SetPlayerArmour(playerid, 100);
SetPlayerSkin(playerid, 287);
return 1;
}
///////////////////////////////////////////////////////
if(PlayerInfo[playerid][pZatvor] == 2)
{
new rand = random(sizeof(RandomZatvor));
JBC_SetPlayerPos(playerid, RandomZatvor[rand][0], RandomZatvor[rand][1], RandomZatvor[rand][2]);
SetPlayerInterior(playerid, 0);
SCMF(playerid,-1,""SIVA"Vracas se na odsluzenje zatvorske kazne | Ostalo ti je jos %d sekundi!",PlayerInfo[playerid][pZatvorenVreme]);
JBC_TogglePlayerControllable(playerid, 0);
freeze[playerid] = SetTimerEx("Freeze",5000, false, "i", playerid);
return 1;
}
if(PlayerInfo[playerid][pZatvor] == 3)
{
JBC_SetPlayerPos(playerid, 107.2300,1920.6311,18.520;
SetPlayerWorldBounds(playerid, 337.5694,101.5826,1940.9759,1798.7453);
SetPlayerInterior(playerid, 0);
SCMF(playerid,-1,""SIVA"Vracas se na odsluzenje zatvorske kazne | Ostalo ti je jos %d sekundi!",PlayerInfo[playerid][pZatvorenVreme]);
JBC_TogglePlayerControllable(playerid, 0);
freeze[playerid] = SetTimerEx("Freeze",5000, false, "i", playerid);
return 1;
}
Reply
#8

yo guys can someone put down discord skype something to help me please. Thanks
Reply
#9

PHP код:
    public OnPlayerSpawn(playerid)
    {
        new 
race GetPVarInt(playeridPVAR_TAG"currentRaceID");
        if (
race)
        {
            
race -= 2;
            if (
raceOwners[race] != INVALID_PLAYER_ID)
            {
                
respawnPlayer(playeridrace);
            }
        }
        
vozact[playerid] = -1;
        
RespawnVozila 0;
        
PlayerInfo[playerid][pUfbi] = 0;
        
JBC_SetPlayerArmour(playerid0);
        
BelaBojaIgraca(playerid);
        
SetPlayerSkills(playerid);
        
ResetujVar(playerid); UsaoFirma[playerid] = -1;
        
Gladan[playerid] = 100Sere[playerid] = 100;
        
SpawnIgraca(playerid);
        
///////////////////////////////////////////////////////
        
if(AdminVozilo[playerid] != -1DestroyVehicle(AdminVozilo[playerid]), AdminVozilo[playerid] = -1;
        
///////////////////////////////////////////////////////
        
if(TextDrawGangZone[playerid] != 1)
        {
            for(new 
0<= 6i++)
            {
                
TextDrawShowForPlayer(playerid,SPORUKE[i]);
            }
            
/*TextDrawShowForPlayer(playerid,Logo[0]); TextDrawShowForPlayer(playerid,Logo[1]);
            TextDrawShowForPlayer(playerid,Logo[2]); TextDrawShowForPlayer(playerid,Logo[3]); TextDrawShowForPlayer(playerid,Logo[4]);*/
            
TextDrawShowForPlayer(playerid,Time);
            
TextDrawShowForPlayer(playerid,OnlineRecord);
            
/*GangZoneShowForPlayer(playerid, GroveGang, 1671188; GangZoneShowForPlayer(playerid, ballaszonag, -2147418167);
            GangZoneShowForPlayer(playerid, tvfzona, -16777017); GangZoneShowForPlayer(playerid, bdtzona, 199);
            GangZoneShowForPlayer(playerid, bdtdrogazone, 199);*/
            
TextDrawGangZone[playerid] = 1;
            
TextDrawShowForPlayer(playeridBankaZlato[playerid]);
            if(
BandaC(playerid) || BandaL(playerid) || MafijasC(playerid) || MafijasL(playerid))
            {
                
//Idlewood
                
if(tCP[Idlewood] == 4GangZoneShowForPlayer(playeridZone[Idlewood], 0x00CD00AA);
                else if(
tCP[Idlewood] == 5GangZoneShowForPlayer(playeridZone[Idlewood], 0x6B238EAA);
                else if(
tCP[Idlewood] == 2GangZoneShowForPlayer(playeridZone[Idlewood], 0xE32E30AA);
                else if(
tCP[Idlewood] == 9GangZoneShowForPlayer(playeridZone[Idlewood], 0xA02422AA);
                else if(
tCP[Idlewood] == 11GangZoneShowForPlayer(playeridZone[Idlewood], 0x003EFFAA);
                else if(
tCP[Idlewood] == 12GangZoneShowForPlayer(playeridZone[Idlewood], 0x000080AA);
                else if(
tCP[Idlewood] == 13GangZoneShowForPlayer(playeridZone[Idlewood], 0xEEEE00AA);
                else if(
tCP[Idlewood] == 15GangZoneShowForPlayer(playeridZone[Idlewood], 0xFCFFF0AA);
                else if(
tCP[Idlewood] == 17GangZoneShowForPlayer(playeridZone[Idlewood], 0xFCD116AA);
                else if(
tCP[Idlewood] == 19GangZoneShowForPlayer(playeridZone[Idlewood], 0xFF1493AA);
                else if(
tCP[Idlewood] == 20GangZoneShowForPlayer(playeridZone[Idlewood], 0x000000AA);
                else if(
tCP[Idlewood] == 3GangZoneShowForPlayer(playeridZone[Idlewood], 0x997a00AA);
                else if(
tCP[Idlewood] == 0GangZoneShowForPlayer(playeridZone[Idlewood], 0xF5F5F5AA);

                
//Hospital
                
if(tCP[Hospital] == 4GangZoneShowForPlayer(playeridZone[Hospital], 0x00CD00AA);
                else if(
tCP[Hospital] == 5GangZoneShowForPlayer(playeridZone[Hospital], 0x6B238EAA);
                else if(
tCP[Hospital] == 2GangZoneShowForPlayer(playeridZone[Hospital], 0xE32E30AA);
                else if(
tCP[Hospital] == 9GangZoneShowForPlayer(playeridZone[Hospital], 0xA02422AA);
                else if(
tCP[Hospital] == 11GangZoneShowForPlayer(playeridZone[Hospital], 0x003EFFAA);
                else if(
tCP[Hospital] == 12GangZoneShowForPlayer(playeridZone[Hospital], 0x000080AA);
                else if(
tCP[Hospital] == 13GangZoneShowForPlayer(playeridZone[Hospital], 0xEEEE00AA);
                else if(
tCP[Hospital] == 15GangZoneShowForPlayer(playeridZone[Hospital], 0xFCFFF0AA);
                else if(
tCP[Hospital] == 17GangZoneShowForPlayer(playeridZone[Hospital], 0xFCD116AA);
                else if(
tCP[Hospital] == 19GangZoneShowForPlayer(playeridZone[Hospital], 0xFF1493AA);
                else if(
tCP[Hospital] == 20GangZoneShowForPlayer(playeridZone[Hospital], 0x000000AA);
                else if(
tCP[Hospital] == 3GangZoneShowForPlayer(playeridZone[Hospital], 0x997a00AA);
                else if(
tCP[Hospital] == 0GangZoneShowForPlayer(playeridZone[Hospital], 0xF5F5F5AA);

                
//Ammunation
                
if(tCP[Ammunation] == 4GangZoneShowForPlayer(playeridZone[Ammunation], 0x00CD00AA);
                else if(
tCP[Ammunation] == 5GangZoneShowForPlayer(playeridZone[Ammunation], 0x6B238EAA);
                else if(
tCP[Ammunation] == 2GangZoneShowForPlayer(playeridZone[Ammunation], 0xE32E30AA);
                else if(
tCP[Ammunation] == 9GangZoneShowForPlayer(playeridZone[Ammunation], 0xA02422AA);
                else if(
tCP[Ammunation] == 11GangZoneShowForPlayer(playeridZone[Ammunation], 0x003EFFAA);
                else if(
tCP[Ammunation] == 12GangZoneShowForPlayer(playeridZone[Ammunation], 0x000080AA);
                else if(
tCP[Ammunation] == 13GangZoneShowForPlayer(playeridZone[Ammunation], 0xEEEE00AA);
                else if(
tCP[Ammunation] == 15GangZoneShowForPlayer(playeridZone[Ammunation], 0xFCFFF0AA);
                else if(
tCP[Ammunation] == 17GangZoneShowForPlayer(playeridZone[Ammunation], 0xFCD116AA);
                else if(
tCP[Ammunation] == 19GangZoneShowForPlayer(playeridZone[Ammunation], 0xFF1493AA);
                else if(
tCP[Ammunation] == 20GangZoneShowForPlayer(playeridZone[Ammunation], 0x000000AA);
                else if(
tCP[Ammunation] == 3GangZoneShowForPlayer(playeridZone[Ammunation], 0x997a00AA);
                else if(
tCP[Ammunation] == 0GangZoneShowForPlayer(playeridZone[Ammunation], 0xF5F5F5AA);

                
//Stadium
                
if(tCP[Stadium] == 4GangZoneShowForPlayer(playeridZone[Stadium], 0x00CD00AA);
                else if(
tCP[Stadium] == 5GangZoneShowForPlayer(playeridZone[Stadium], 0x6B238EAA);
                else if(
tCP[Stadium] == 2GangZoneShowForPlayer(playeridZone[Stadium], 0xE32E30AA);
                else if(
tCP[Stadium] == 9GangZoneShowForPlayer(playeridZone[Stadium], 0xA02422AA);
                else if(
tCP[Stadium] == 11GangZoneShowForPlayer(playeridZone[Stadium], 0x003EFFAA);
                else if(
tCP[Stadium] == 12GangZoneShowForPlayer(playeridZone[Stadium], 0x000080AA);
                else if(
tCP[Stadium] == 13GangZoneShowForPlayer(playeridZone[Stadium], 0xEEEE00AA);
                else if(
tCP[Stadium] == 15GangZoneShowForPlayer(playeridZone[Stadium], 0xFCFFF0AA);
                else if(
tCP[Stadium] == 17GangZoneShowForPlayer(playeridZone[Stadium], 0xFCD116AA);
                else if(
tCP[Stadium] == 19GangZoneShowForPlayer(playeridZone[Stadium], 0xFF1493AA);
                else if(
tCP[Stadium] == 20GangZoneShowForPlayer(playeridZone[Stadium], 0x000000AA);
                else if(
tCP[Stadium] == 3GangZoneShowForPlayer(playeridZone[Stadium], 0x997a00AA);
                else if(
tCP[Stadium] == 0GangZoneShowForPlayer(playeridZone[Stadium], 0xF5F5F5AA);
            }
        }
        if(
PlayerInfo[playerid][pWar] == 1)
        {
            
SetPlayerVirtualWorld(playerid10);
            new 
rand random(sizeof(RandomTim1));
            
JBC_SetPlayerPos(playeridRandomTim1[rand][0], RandomTim1[rand][1], RandomTim1[rand][2]);
            
SetPlayerInterior(playerid10);
            
YokerGivePlayerWeapon(playerid24200);
            
YokerGivePlayerWeapon(playerid25200);
            
YokerGivePlayerWeapon(playerid31500);
            
YokerGivePlayerWeapon(playerid34500);
            
JBC_SetPlayerHealth(playerid100);
            
JBC_SetPlayerArmour(playerid100);
            
SetPlayerSkin(playerid285);
            return 
1;
        }
        else if(
PlayerInfo[playerid][pWar] == 2)
        {
            
SetPlayerVirtualWorld(playerid10);
            new 
rand2 random(sizeof(RandomTim2));
            
JBC_SetPlayerPos(playeridRandomTim2[rand2][0], RandomTim2[rand2][1], RandomTim2[rand2][2]);
            
SetPlayerInterior(playerid10);
            
YokerGivePlayerWeapon(playerid24200);
            
YokerGivePlayerWeapon(playerid25200);
            
YokerGivePlayerWeapon(playerid31500);
            
YokerGivePlayerWeapon(playerid34500);
            
JBC_SetPlayerHealth(playerid100);
            
JBC_SetPlayerArmour(playerid100);
            
SetPlayerSkin(playerid287);
            return 
1;
        }
        
///////////////////////////////////////////////////////
        
if(PlayerInfo[playerid][pZatvor] == 2)
        {
            new 
rand random(sizeof(RandomZatvor));
            
JBC_SetPlayerPos(playeridRandomZatvor[rand][0], RandomZatvor[rand][1], RandomZatvor[rand][2]);
            
SetPlayerInterior(playerid0);
            
SCMF(playerid,-1,""SIVA"Vracas se na odsluzenje zatvorske kazne | Ostalo ti je jos %d sekundi!",PlayerInfo[playerid][pZatvorenVreme]);
            
JBC_TogglePlayerControllable(playerid0);
            
freeze[playerid] = SetTimerEx("Freeze",5000false"i"playerid);
            return 
1;
        }
        if(
PlayerInfo[playerid][pZatvor] == 3)
        {
            
JBC_SetPlayerPos(playerid107.2300,1920.6311,18.5208);
            
SetPlayerWorldBounds(playerid337.5694,101.5826,1940.9759,1798.7453);
            
SetPlayerInterior(playerid0);
            
SCMF(playerid,-1,""SIVA"Vracas se na odsluzenje zatvorske kazne | Ostalo ti je jos %d sekundi!",PlayerInfo[playerid][pZatvorenVreme]);
            
JBC_TogglePlayerControllable(playerid0);
            
freeze[playerid] = SetTimerEx("Freeze",5000false"i"playerid);
            return 
1;
        }
    } 
try SetPlayerSpawn
Reply
#10

works?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)