Jump to content
  • 0

Ajutor


SteveX

Question

Cum schimb un interior al unei factiuni?  asa arata la Spawn-ul factiunii

SetPlayerToTeamColor(playerid);
		    SetPlayerInterior(playerid, 8);
		    SetPlayerPos(playerid, 2807.619873,-1171.899902,1025.570312);
		    PlayerInfo[playerid][pInt] = 8;
		    GivePlayerWeapon(playerid, 24, 57);
                    GivePlayerWeapon(playerid, 8, 1);
                    SendClientMessage(playerid, COLOR_YELLOW2, "Type /exit to go out of HQ");
		    return 1;

Am schimbat eu niste coordonate de la SetPlayerInterior(8-ul cu 12), SetPlayerPos(acele coordonate cu cele ale interiorului meu) si la PlayerInfo(8-ul tot cu 12)

Merge bine...ma spawneaza cu acel interior vrut de mine....dar cand dau /exit sa ies ma da in SF la o casa...Va rog ajutati-ma

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Vezi la comanda /exit ca trebuie sa ai ceva de genu

[pawn]if(strcmp(cmd, "/exit", true) == 0)

{

    if(IsPlayerConnected(playerid))

{

    if(PlayerInfo[playerid][pMember] == nr.factiune || PlayerInfo[playerid][pLeader] == nr.factiune)

    {

if(PlayerToPoint(3, playerid,coordonatele noi pe care le-ai modificat))// doar asta modifici

{

        SetPlayerPos(playerid, 1105.8713,-299.7682,74.5391);

SetPlayerInterior(playerid, 0);

SetPlayerVirtualWorld(playerid, 0); //

}

}

}

}[/pawn]

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.