27.03.2019, 16:51
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;
}
}
// 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;
}
}