31.12.2012, 09:45
Well yes i tried to change the spawn point but it wont change i done /save spawn and put the code where it says
addplayerclass
addplayerclass
public OnPlayerSpawn(playerid)
{
// Anti F4 Bug - Logging/Registering
if(!PlayerInfo[playerid][pLoggedIn] && !IsPlayerNPC(playerid))
{
if(IsPlayerNPC(playerid)) return 1;
SetPlayerPos(playerid, -179.8350,1087.3606,19.7422);
SetPlayerFacingAngle(playerid, 241.9190);
SetPlayerCameraPos(playerid, 1975.203002, 3779.311523, 100.243506);
SetPlayerCameraLookAt(playerid, 1975.203002, 3779.311523, -0.243506);
SetTimerEx("ResetCam", 5000, false, "i", playerid);
//Remove SetSpawnInfo
//Code continues...
return 1;
}
//At the bottom of your script
forward ResetCam(playerid);
public ResetCam(playerid)
{
SetCameraBehindPlayer(playerid);
return 1;
}
public OnPlayerSpawn(playerid)
{
// Anti F4 Bug - Logging/Registering
if(IsPlayerNPC(playerid)) return 1;
if(PlayerInfo[playerid][pLoggedIn])
{
SetPlayerPos(playerid, -179.8350,1087.3606,19.7422);
SetPlayerFacingAngle(playerid, 241.9190);
SetPlayerCameraPos(playerid, 1975.203002, 3779.311523, 100.243506);
SetPlayerCameraLookAt(playerid, 1975.203002, 3779.311523, -0.243506);
SetTimerEx("ResetCam", 5000, false, "i", playerid);
//Remove SetSpawnInfo
//Code continues...
return 1;
}
//At the bottom of your script
forward ResetCam(playerid);
public ResetCam(playerid)
{
SetCameraBehindPlayer(playerid);
return 1;
}