PDA

View Full Version : Something is wrong in my server script


Bek_Loking
27/09/2013, 10:27 PM
I've done some stuff to my .pwn file and this is what happened:
As soon as I connect to the server, I have a flash picture of Grove ( char selection ) and boom I spawn as a CJ in lv on some electric staircases.
If somebody needs the code, I have it.
SetGameModeText("Just Testin'");
AddPlayerClass(107,2521.2722,-1678.7083,15.3522,82.8959,31,500,24,999,32,400);
AddPlayerClass(106,2521.2722,-1678.7083,15.3522,82.8959,31,500,24,999,32,400);
AddPlayerClass(105,2521.2722,-1678.7083,15.3522,82.8959,31,500,24,999,32,400);
AddPlayerClass(108,2521.2722,-1678.7083,15.3522,82.8959,37,900,18,2020,30,999);
AddPlayerClass(109,2521.2722,-1678.7083,15.3522,82.8959,37,900,18,2020,30,999);
AddPlayerClass(110,2521.2722,-1678.7083,15.3522,82.8959,37,900,18,2020,30,999);
AddPlayerClass(102,2521.2722,-1678.7083,15.3522,82.8959,22,9999,31,999);
AddPlayerClass(103,2521.2722,-1678.7083,15.3522,82.8959,27,2700,22,9999,31,999);
AddPlayerClass(104,2521.2722,-1678.7083,15.3522,82.8959,27,2700,22,9999,31,999);
AddPlayerClass(114,2521.2722,-1678.7083,15.3522,82.8959,26,200,23,400,32,999);
AddPlayerClass(115,2521.2722,-1678.7083,15.3522,82.8959,26,200,23,400,32,999);
AddPlayerClass(116,2521.2722,-1678.7083,15.3522,82.8959,26,200,23,400,32,999);
AddPlayerClass(120,2521.2722,-1678.7083,15.3522,82.8959,8,0,31,999,24,999);
AddPlayerClass(179,2521.2722,-1678.7083,15.3522,82.8959,30,500,22,490,29,800);
AddPlayerClass(194,2521.2722,-1678.7083,15.3522,82.8959,10,0,31,2000,30,2000);

AddStaticVehicle(447,2529.5759,-1678.2296,19.9419,91.5106,75,2);
AddStaticVehicle(490,2494.3008,-1654.5840,13.5311,249.8709,0,0);
AddStaticVehicle(451,2473.8311,-1700.7242,13.2273,177.6675,125,125);
AddStaticVehicle(522,2528.0742,-1689.7404,13.2581,80.6985,6,25);
AddStaticVehicle(522,2527.1887,-1689.2676,13.2201,63.1784,6,25);


return 1;
}

public OnGameModeExit()
{
return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,1679.3407,14.8529,88.2490);
SetPlayerFacingAngle(playerid,90.0);
SetPlayerCameraPos(playerid,2513.6995,-1675.4047,13.5563,250.6615);
SetPlayerCameraLookAt(playerid,2513.6995,-1675.4047,13.5563,250.6615);
return 1;
}

public OnPlayerConnect(playerid)
{
GameTextForPlayer(playerid, "~b~Hello, Welcome to our server, remember to read /rules!",10000,6);
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
return 1;
}

public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid,1679.3407,14.8529,88.2490);
return 1;
}

Any help would be useful.
I don't know what I did, I don't have any warnings or errors. I'm confused <_< .-. >_> .-. >_<

Bek_Loking
28/09/2013, 07:43 AM
Bump!?

BullseyeHawk
28/09/2013, 07:53 AM
Read up on http://wiki.sa-mp.com/wiki/SetSpawnInfo

This would spawn your character more completly. Try it out.