mod koji j koristim: street stories
problem: Ja sam stavio temu da hocu da izbrisem kada neko kupi kucu da se ne spawnuje u njoj, sad sam naso code pa bih volio da mi kazete da li je to taj sto treba da izbrisem?
code:
if(SpawnChange[playerid]) //If 1, then you get to your house, else spawn somewhere else
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid,HouseInfo[house][hInt]);
SetPlayerPos(playerid, HouseInfo[house][hExitx], HouseInfo[house][hExity],HouseInfo[house][hExitz]); // Warp the player
SetPlayerVirtualWorld(playerid,HouseInfo[house][hVirtualWorld]);
PlayerInfo[playerid][pLocal] = house;
PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];
PlayerInfo[playerid][VirtualWorld] = HouseInfo[house][hVirtualWorld];
return 1;
}
SMOD; NauÄi koristiti code