[pomoc] Spawn posle smrti

Započeo --Lood--, Oktobar 20, 2012, 15:57:25 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Scripta koju korsitim: od 0
Opis problema: E vako znaci napravio sam FreeZonu(DM), ali kad umrem nespawnam se na Brodu u SF, vec na spawnu, pa ako moze pomoc...
Dio Scripte:
Spawn Tim Alfa

-1467.1,1491.3,9.10000


Spawn Tim Beta

-1467.1,1491.3,9.10000




public OnPlayerDeath(playerid, killerid, reason)
{
if(UsouFZ[playerid] == 1)
{
if(gang[playerid] == 1)
{
SetPlayerPos(playerid,-1467.1,1491.3,9.10000);

}
if(gang[playerid] == 2)
{
SetPlayerPos(playerid,-1467.1,1491.3,9.10000);
}
new string[128];
format(string, sizeof(string), "%s je ubio %s-a", ImePrezime(killerid), ImePrezime(playerid));
SCMA(CRVENA, string);
PlayerInfo[killerid][pKills]++;
PlayerInfo[playerid][pDeaths]++;
}
return 1;
}





public OnPlayerSpawn(playerid)
{
if(PlayerInfo[playerid][pObicanSpawn] == 1) //Spawn za igrace
{
new odjeca = PlayerInfo[playerid][pChar];
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, 1730.5425,-1912.2008,13.5628);
SetPlayerFacingAngle(playerid, 180);
PlayerInfo[playerid][pInt] = 0;
SetPlayerSkin(playerid, odjeca);
return 1;

}
if(UsouFZ[playerid] == 1)
{
if(gang[playerid] == 1)
{
SetPlayerPos(playerid,-1467.1,1491.3,9.10000);

}
if(gang[playerid] == 2)
{
SetPlayerPos(playerid,-1467.1,1491.3,9.10000);
}

}

return 1;
}

Slika/Video: //
Poslednja Izmena: Oktobar 20, 2012, 15:57:46 POSLE PODNE od --Lood--