Need Help With /enter Commands
#1

hey guys ive recently been getting back into scripting still learning...

anyways im currently on a /enter command.

Pawn Code:
Quote:

COMMAND:enter(playerid, cmdtext)
{
if(IsPlayerInRangeOfPoint(playerid,10,1083.0128,-1226.7743,15.8203)) // First HQ
{
SetPlayerPos(playerid,446.5391,508.0998,1001.4195) ;
SetPlayerInterior(playerid, 12);
SetPlayerFacingAngle(playerid,357.0036);
return 1;
}
if(IsPlayerInRangeOfPoint(playerid,10,1462.1792,-1011.1504,26.843) // Bank
{
SetPlayerPos(playerid,2306.3750,-16.0178,26.7496);
SetPlayerInterior(playerid, 0);
SetPlayerFacingAngle(playerid,270.3622);
return 1;
}
if(IsPlayerInRangeOfPoint(playerid,10,2326.9063,-1681.9424,14.9297)) // Joels House
{
SetPlayerPos(playerid,1523.509887,-47.821197,1002.130981);
SetPlayerInterior(playerid, 2);
SetPlayerFacingAngle(playerid,355.8593);
return 1;
}
return 1;
}

The thing is when i exit or enter the mouse look is always looking either to the left or right, i want it to be centered or looking in the direction the player is looking could i get some help?

and by examining the code... am i doing it right?

Quote:

p.s i also appreciate some info on how to make some hovering text or somethign above the pickup.. instead of me using "GameTextForPlayer" under OnPlayerPickup.

Reply


Messages In This Thread
Need Help With /enter Commands - by Crusader634 - 16.06.2012, 05:52
Re: Need Help With /enter Commands - by SnG.Scot_MisCuDI - 16.06.2012, 06:02
Re: Need Help With /enter Commands - by Crusader634 - 16.06.2012, 06:37
Re: Need Help With /enter Commands - by Eiy Mard - 16.06.2012, 06:54
Re: Need Help With /enter Commands - by CrazyGab - 16.06.2012, 07:07

Forum Jump:


Users browsing this thread: 1 Guest(s)