[TUT] Changing the spawn of an Org
#1

How to Change the spawn of an Org

1 Browse the gamemode By:

public SetPlayerSpawn(playerid)

Go down a well and the gamemode will get something like this:

//================================================== ===================

if (PlayerInfo[playerid][pMembro] == 2 || PlayerInfo[playerid][pLider] == 2)//B.O.P.E Spawn
{
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 286.3543,-1513.8691,24.9289);
PlayerInfo[playerid][pInt] = 0;
SetPlayerWantedLevel(playerid, 0);
return 1;
}

//================================================== ===================

2 In the row that is written:

SetPlayerPos(playerid, 286.3543,-1513.8691,24.9289); //Here you change the coordinate in which you want.

Ex:

286.3543,-1513.8691,24.9289

You return to spawn where you want it.

Note: To get the coordinates, type "/ save IPS" on site.
Then go to the folder "My Documents> GTA San Andreas User Files>> SAMP> savedpositions"

In file savedepositions will coordinate the location that you saved.

EX:

AddPlayerClass(217,-1986.2544,138.3288,27.6875,86.8541,0,0,0,0,0,0); // IPS

-1986.2544,138.3288,27.6875 (This is the coordinate of the Spawn).
86.8541(This is the angle, but it takes).

Change in which you want to compile the gamemode and pressing "F5 ".

Good Luck!
Reply
#2

Nice tut, useful for newbies^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)