SA-MP Forums Archive
Help Please - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help Please (/showthread.php?tid=261265)



Help Please - zouyun - 12.06.2011

I have a problem when logging in. When I log in I get bugged. These are my codes.

Код:
public OnGameModeInit()
{
	SetGameModeText("Blank Script");
	AddPlayerClass(265,258.4893,-41.4008,1002.0234,270.1425,0,0,0,0,-1,-1);
	return 1;
}
Код:
public OnPlayerRequestClass(playerid, classid)
{
 	SetPlayerInterior(playerid, 14);
	SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
	SetPlayerFacingAngle(playerid, 270.0);
	SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
	SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
	return 1;
}
I also want to know how to remove those yellow portals that lets you enter houses. I deleted my properties files in scriptfiles but it only removed the businesses.


Re: Help Please - randomkid88 - 12.06.2011

To disable the portals, use
pawn Код:
DisableInteriorEnterExits();
in OnGamemodeInit.

Also, why are the last two params of AddPlayerClass "-1" when the other weapons are "0"?


Re: Help Please - zouyun - 12.06.2011

Thanks for the portals. For the last two params I copied it from someone else.