[Pomoc]Oko promijene spawna [HITNO]

Započeo Drobnjak, April 01, 2013, 21:39:13 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Ovako kada idem /izaberispawn i promijenim opet se spawnam na istom mijestu!
A pise da je promijenjen,ima li neko kod da ubacim za promijeni spawn ne moras biti dialog...
Procesor komandi strcmd...


Moj kod

if(strcmp(cmd, "/izaberispawn", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        ShowPlayerDialog(playerid,59,DIALOG_STYLE_LIST ,"Mesto Spawna","Standardno\nKuca\nStan\nVikendica","OK","OK");
   }
    return 1;
}


Neznam u cemu je problem..

if(dialogid == 59)
{
    if(response)
    {
    switch(listitem)
    {
        case 0:
        {
               PlayerInfo[playerid][pCSpawn] = 0;
SendClientMessage(playerid, COLOR_WHITE, "Odsad ces se spawnovati u bandi/mafiji/spawnu");
                }
        case 1:
        {
if(PlayerInfo[playerid][pPhousekey]==999){SendClientMessage(playerid, COLOR_WHITE, "Nemas kucu!");return 1;}
PlayerInfo[playerid][pCSpawn] = 1;
SendClientMessage(playerid, COLOR_WHITE, "Odsad ces se spawnovati u kuci!");
                }
        case 2:
        {
if(PlayerInfo[playerid][pStan]==999){SendClientMessage(playerid, COLOR_WHITE, "Nemas stan!");return 1;}
PlayerInfo[playerid][pCSpawn] = 2;
SendClientMessage(playerid, COLOR_WHITE, "Odsad ces se spawnovati u stanu!");
                }
                case 3:
        {
if(PlayerInfo[playerid][pVikendica]==999){SendClientMessage(playerid, COLOR_WHITE, "Nemas Vikendicu!");return 1;}
PlayerInfo[playerid][pCSpawn] = 3;
SendClientMessage(playerid, COLOR_WHITE, "Odsad ces se spawnovati u vikendici!");
                }
}
}
return 1;

daj onaj kod, diti je to za namjestanje npr da se spawna u vikendici, daj to da vidimo tamo kako je..
Other Dimension RolePlay | Uskoro
Ukoliko zelite pomoci u razvoju servera, mozete se meni javit na PP/PM!

Citat: Crazyn3ss poslato April 01, 2013, 23:45:51 POSLE PODNE
daj onaj kod, diti je to za namjestanje npr da se spawna u vikendici, daj to da vidimo tamo kako je..

Evo ovo su sve sto ima nema uopste za org...

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]);
JBC_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(house !=999)
{
    if(PlayerInfo[playerid][pCSpawn] == 1) //If 1, then you get to your house, else spawn somewhere else
    {
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid,HouseInfo[house][hInt]);
SetPlayerVirtualWorld(playerid,HouseInfo[house][hWorld]);kosa(playerid);
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];
ukuci[playerid]= house;
return 1;
}
}
if(stan !=999)
{
    if(PlayerInfo[playerid][pCSpawn] == 2) //If 1, then you get to your house, else spawn somewhere else
    {
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid,StanInfo[stan][stInterier]);
SetPlayerVirtualWorld(playerid,stan);kosa(playerid);
SetPlayerPos(playerid,StanInfo[stan][stiPozicijaX],StanInfo[stan][stiPozicijaY],StanInfo[stan][stiPozicijaZ]); // Warp the player
PlayerInfo[playerid][pInt] = StanInfo[stan][stInterier];
ustanu[playerid]=stan;
return 1;
}
}
if(vikend !=999)
{
    if(PlayerInfo[playerid][pCSpawn] == 3) //If 1, then you get to your house, else spawn somewhere else
    {
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid,VikendicaInfo[vikend][vInterier]);
SetPlayerVirtualWorld(playerid,vikend);kosa(playerid);
SetPlayerPos(playerid,VikendicaInfo[vikend][viPozicijaX],VikendicaInfo[vikend][viPozicijaY],VikendicaInfo[vikend][viPozicijaZ]); // Warp the player
PlayerInfo[playerid][pInt] = VikendicaInfo[vikend][vInterier];
uvikendici[playerid]=vikend;
return 1;
}
}

verovatno si stavio da kad se igrac login da ga spawna na odredjeno mesto a ne na mesto koje je odabrao
BIG RESPECT JOEY_
BIG RESPECT [BD] Mr.Gagi

BIG RESPECT David A.k.A Sabljak