Changing the Spawn of Org -
[iPs]Bruno Tadeu - 06.03.2011
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!
Re: Changing the Spawn of Org -
SkizzoTrick - 06.03.2011
Do you assume that everyone is using the same system with yours?xD
I don't think so.
IT depends on everyones script.If you want to create a tutorial like this one,you should write in everything from "How to create an Organisation?" to "How to set members spawn position".
Re: Changing the Spawn of Org -
Stigg - 06.03.2011
Quote:
Originally Posted by [iPs]Bruno Tadeu
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!
|
AGAIN!! Read this before you post a tutorial.
https://sampforum.blast.hk/showthread.php?tid=65567