[Pomoc] Spawn

Započeo Rotcod, Septembar 05, 2010, 11:53:25 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

kako da izmenim da se nespavna u enterijeru kad je to ovako van enterijera


if (PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)//La Vice spawn
{
if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 2);
    SafeSetPlayerPos(playerid,610.6669,-2530.0935,13.5404);
    return 1;
}
else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
}
}


Hitno

ako zelis da se spawna izvan interiera onda ovo stavis na "0"

SafeSetPlayerInterior(playerid, 2);