One more question for today
#1

Guys I made my skins able to choose when you log into the server. They are on big ear. I choose skin and it spawns me..somewhere near Palomino Creek. How can I fix this?
Quote:

public OnGameModeInit()
{
SetGameModeText("BG Drift Server 0.2");
AddPlayerClass(29,1039.7031,-302.3944,73.9931,271.9528,0,0,0,0,0,0);
AddPlayerClass(50,1039.7031,-302.3944,73.9931,271.9528,0,0,0,0,0,0);
AddPlayerClass(21,1039.7031,-302.3944,73.9931,271.9528,0,0,0,0,0,0);
AddPlayerClass(206,1039.7031,-302.3944,73.9931,271.9528,0,0,0,0,0,0);
AddPlayerClass(28,1039.7031,-302.3944,73.9931,271.9528,0,0,0,0,0,0);
AddPlayerClass(217,1039.7031,-302.3944,73.9931,271.9528,0,0,0,0,0,0);
AddStaticVehicle(562,-314.6309,1513.6968,75.0175,359.4061,35,1);
AddStaticVehicle(560,-317.9627,1513.5756,75.0630,1.4779,9,39);
AddStaticVehicle(429,-320.9830,1513.5511,75.0391,358.4951,13,13);
AddStaticVehicle(415,-323.9948,1513.2255,75.1317,0.0138,25,1);
AddStaticVehicle(411,-327.2468,1513.5265,75.0864,358.3132,64,1);
AddStaticVehicle(506,-330.4309,1513.7437,75.0639,359.3257,6,6);
AddStaticVehicle(477,-333.5446,1513.8174,75.1135,359.9926,94,1);
AddStaticVehicle(480,-336.6674,1513.2372,75.1321,359.5574,12,12);
AddStaticVehicle(402,-339.6433,1513.1305,75.1429,1.0845,13,13);
EnableTirePopping(1);
EnableStuntBonusForAll(1);
return 1;
}

and

Quote:

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, -340.6127,1534.3905,75.3594);
SetPlayerFacingAngle(playerid, 177.0745);
SetPlayerCameraPos(playerid, -340.7382,1529.7828,75.3570);
SetPlayerCameraLookAt(playerid, -340.6127,1534.3905,75.3594);
return 1;
}

and also this

Quote:

public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid, -340.6127,1534.3905,75.3594);
SpawnPlayer(playerid);
SendClientMessage(playerid, 0x21F600AA, "Spawn-нахте се успешно!");
return 1;
}

Where is my error? I compiled it and I had no problems untill I joined - it spawned me at P.Creek as I said.
Reply
#2

Theres no error in your script, Now listen where ever you type /save skin then ad it in OnGameodeInit


Where ever you saved that skin, It will spawn there,

So just go anywhere you want the skins to spawn.
Reply
#3

Fixed! Thanks!
Reply
#4

Quote:
Originally Posted by BaFTa
Fixed! Thanks!
No problem, happy to help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)