[POMOC] Poslednje mesto SPAWNA.

Započeo DjokoÅ¡, Decembar 09, 2012, 21:33:06 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Citat: Blaeks poslato Decembar 10, 2012, 08:13:33 PRE PODNE
Citat: Ricky_Danzel poslato Decembar 10, 2012, 01:33:48 PRE PODNE
U modu imas ovako:
if(TutTime[playerid] == 0 && PlayerInfo[playerid][pTut] == 1 && RegistrationStep[playerid] == 0 && AfterTutorial[playerid] == 0 && FirstSpawn[playerid] == 1)
    {
        new plname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, plname, sizeof(plname));
      SetPlayerVirtualWorld(playerid,PlayerInfo[playerid][pVirWorld]);
        SafeSetPlayerInterior(playerid,PlayerInfo[playerid][pInt]);
    SafeSetPlayerPos(playerid, PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z] + 1);
format(string, sizeof(string), "Welcome to Los Santos, %s... Returning where have you been",plname);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "~w~Welcome, ~b~%s. ~n~~y~Returning where have you been!", plname);
    GameTextForPlayer(playerid, string, 5000, 1);
    return 1;
}


Umesto toga stavi ovako:
            if(TutTime[playerid] == 0 && PlayerInfo[playerid][pTut] == 1 && RegistrationStep[playerid] == 0 && AfterTutorial[playerid] == 0 && FirstSpawn[playerid] == 1)
if(house !=255)
{
    if(PlayerInfo[playerid][pSpawn] == 1) //If 1, then you get to your house, else spawn somewhere else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerInterior(playerid,HouseInfo[house][hInt]);
SetPlayerVirtualWorld(playerid,HouseInfo[house][hWorld]);
SafeSetPlayerPos(playerid, HouseInfo[house][hExitx], HouseInfo[house][hExity],HouseInfo[house][hExitz]); // Warp the player
PlayerInfo[playerid][pLocal] = house;
HouseEntered[playerid] = house;
return 1;
}
}

Tako nekako bi i trebalo biti, samo ne znam da li on ima varijable koje se ovde upotrebljavaju?

Ako je gf onda ja mislim da ce raditi, to sam uzeo sa stvog starog moda