Help Please
#1

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.
Reply
#2

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"?
Reply
#3

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


Forum Jump:


Users browsing this thread: 2 Guest(s)