[Pomoc] Spawn

Započeo [NG | RP] Almir, Februar 28, 2013, 16:00:40 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta: CLRP
Problem: Eh ovako uradio sam sistem stanova i planiram uraditi sistem vikendica i sad mi spawn predstavlja problem uradio sam sad za stanove i kucu spawn tj. ako sam izabrao spawn u kuca/stan onda ce me spawnat u kuci ako imam kucu a ako nemam kucu onda u stanu. EH sad bi ja htio da uradim posebno spawn za stan za kucu i tako
Dio skripte:
if(house !=255)
{
    if(SpawnChange[playerid]) //If 1, then you get to your house, else spawn somewhere else
    {
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid,HouseInfo[house][hInt]);
SetPlayerVirtualWorld(playerid,HouseInfo[house][hWorld]);
SetPlayerPos(playerid, HouseInfo[house][hExitx], HouseInfo[house][hExity],HouseInfo[house][hExitz]); // Warp the player
PlayerInfo[playerid][pLocal] = house;
HouseEntered[playerid] = house;
PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];
return 1;
}
}
if(stan !=255)
{

SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid,StanInfo[stan][sInt]);
SetPlayerVirtualWorld(playerid,StanInfo[stan][sWorld]);
SetPlayerPos(playerid, StanInfo[stan][sExitx], StanInfo[stan][sExity],StanInfo[stan][sExitz]); // Ald 1
StanEntered[playerid] = stan;
PlayerInfo[playerid][pInt] = StanInfo[stan][sInt];
return 1;

}

Slike: //
Jbg ne smijem dvije uzastopno teme al jbg :D
Poslednja Izmena: Februar 28, 2013, 16:03:11 POSLE PODNE od BC Aldin Delic


Te kodove dodaješ po OnPlayerSpawn.
Napravio dialog,i da odabere di će se spawnati .. i u svaki case dodas pojedine funkcije za spawn
BIG RESPEKT: Blaeks,  [CRP] Joey_, David (Sabljak) A.k.A SABO(T), joXy_, Dimi, Sexserghy ♥, TerminuS, H1TM4N