|
This forum requires that you wait 120 seconds between posts. Please try again in 1 seconds. |
|
Use AddPlayerClass in the OnGameModeInit callback.
|
public OnGameModeInit()
{
Textovi = TextDrawCreate(3.3750, 430.0, "Za listu online admina napisi /admins");
TextDrawTextSize(Textovi,629.000000,2.000000);
TextDrawFont(Textovi,1);
TextDrawLetterSize(Textovi,0.499999,1.399999);
TextDrawColor(Textovi,0x00FF6EFF);
TextDrawSetProportional(Textovi,1);
SetTimer("Textovi2",15000,true);
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
// Ballas
AddPlayerClass(104,1979.1917,-1222.0964,25.1824,97.3597,0,0,0,0,0,0); // 104=Skin , 1979.1917 =X ect....
// Groves
AddPlayerClass(107,2508.5671,-1673.6665,13.3793,86.2585,0,0,0,0,0,0);
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
if(classid == 0)
{
gTeam[playerid] = BALLAS;
GameTextForPlayer(playerid,"~p~Ballas",3000,5); // This will show up an Text , when you select your class
SetPlayerPos(playerid,1975.2399,-1220.0157,25.0779); // position of the player in the class selection
SetPlayerCameraPos(playerid,1969.5686,-1224.0016,24.9909); // Cameraposition
SetPlayerCameraLookAt(playerid,1975.2399,-1220.0157,25.0779);
SetPlayerFacingAngle(playerid,122.4500);
SetPlayerColor(playerid,0xA000FFFF); // Teamcolor
}
else if(classid == 1)
{
gTeam[playerid] = GROVES;
GameTextForPlayer(playerid,"~g~Grove Street Famlilys",3000,5);
SetPlayerPos(playerid,2500.6060,-1672.1453,13.3512);
SetPlayerCameraPos(playerid,2507.0615,-1674.3574,13.3732);
SetPlayerCameraLookAt(playerid,2500.6060,-1672.1453,13.3512);
SetPlayerFacingAngle(playerid,252.4717);
SetPlayerColor(playerid,0x55FF00FF);
}
SpawnPlayer(playerid);
}
public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid, x, y, z);
return 1;
}
|
Код:
public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid, x, y, z);
return 1;
}
Written on my iPhone so it's not the best |
public OnPlayerSpawn(playerid)
{
StopAudioStreamForPlayer(playerid);
TextDrawShowForPlayer(playerid, Textovi);
return 1;
}
SetPlayerPos(playerid, x, y, x);
|
You need too add the SetPlayerPos, too get this go In game and look or your spawn then do /save. Then search on your computer for 'saved positions'. Take the first 3 big numbers and place them like this;
Код:
SetPlayerPos(playerid, x, y, x); |
public OnPlayerRequestSpawn(playerid)
{
return 1;
}