Jump to content
  • 0

Cum fac daca playerul e in factiunea cu id 1 sa il spawneze la coordonatele puse


Question

Posted

Dupa cum spune titlul am facut un gm chesti trestii si am facut prima factiune xD dar nu stiu cum sa fac daca  e in factiunea cu id 1 sa il spawneze undeva anume.. va rog ajutor !

2 answers to this question

Recommended Posts

Posted

CTRL + F = public OnPlayerSpawn

Sub ea adaugi asta

[pawn]if (PlayerData[playerid][pMember] == 1 || PlayerData[playerid][pLeader] == 1)// 1 = Numarul factiunii

{

SetPlayerToTeamColor(playerid);

SetPlayerPos(playerid, X, Y, Z); // Coordonatele

SetPlayerFacingAngle(playerid, 270.0); // Unghiul camerei

SetPlayerInterior(playerid,0); // Inlocuiesti 0 cu ID-ul interiorului (daca este spawnat in interior)

PlayerData[playerid][pInt] = 0; // ^^^

SetPlayerVirtualWorld(playerid, 0); // Lasi asa

return 1;

                }[/pawn]

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.