OnPlayerSpawn Problem > GFSystem -
playstores - 27.03.2019
I always spawn health bugged and without my gang skin, whats the Problem?
// OnPlayerSpawn
if(PlayerInfo[playerid][pMember] !=0)
{
new frak = PlayerInfo[playerid][pMember];
new Zone = PlayerInfo[playerid][CurrentGangfight];
if(IsAFightFaction(frak))
{
if(FrakInfo[frak][GFAktiv] == 1)
{
new rand = random(3);
switch(rand)
{
case 0:
{
SetPlayerPos(playerid,GfSystem[Zone][RndSpawn1X], GfSystem[Zone][RndSpawn1Y],GfSystem[Zone][RndSpawn1Z]);
SetPlayerInterior(playerid,0);
}
case 1:
{
SetPlayerPos(playerid,GfSystem[Zone][RndSpawn2X], GfSystem[Zone][RndSpawn2Y],GfSystem[Zone][RndSpawn2Z]);
SetPlayerInterior(playerid,0);
}
case 2:
{
SetPlayerPos(playerid,GfSystem[Zone][RndSpawn3X], GfSystem[Zone][RndSpawn3Y],GfSystem[Zone][RndSpawn3Z]);
SetPlayerInterior(playerid,0);
}
case 3:
{
SetPlayerPos(playerid,GfSystem[Zone][RndSpawn4X], GfSystem[Zone][RndSpawn4Y],GfSystem[Zone][RndSpawn4Z]);
SetPlayerInterior(playerid,0);
}
}
SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]);
GiveWSWeapons(playerid);
}
return 1;
}
}
Re: OnPlayerSpawn Problem > GFSystem -
TheToretto - 27.03.2019
Well... It's just a matter of checks, and I don't see any health modification in your code.
+ Use SetSpawnInfo instead of manually doing it in multiple lines.
Re: OnPlayerSpawn Problem > GFSystem -
playstores - 27.03.2019
Doesnt'make any difference.
If I remove the return 1; it works, but the player isn't spawning in the GF anymore
so thats no solution
https://pastebin.com/JLtd1LCr
Re: OnPlayerSpawn Problem > GFSystem -
playstores - 27.03.2019
push