SA-MP Forums Archive
A problem with /exit - 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)
+--- Thread: A problem with /exit (/showthread.php?tid=430330)



A problem with /exit - ovidiu123123 - 13.04.2013

I have a problem with / exit, since we hosted server not working (give / exit to leave the building and not come out)
except the mayor, the mayor go, somebody help me please?


Re: A problem with /exit - Isolated - 13.04.2013

Um, how do you expect us to help with no script to work from?? We're not magicians.


Re: A problem with /exit - ovidiu123123 - 13.04.2013

//Ballas
CreateDynamicPickup(1239, 23, 763.6037,-50.4406,1000.5859);//Ballas HQ exit
Create3DTextLabel("/exit", 0xFFFF00FF, 763.6037,-50.4406,1000.5859, 20,0,1);
CreateDynamicPickup(1239, 23, 2148.9358,-1484.7900,26.6242);//enter Ballas HQ
Create3DTextLabel("/enter", 0xFFFF00FF, 2148.9358,-1484.7900,26.6242, 20,0,1)


Re1: A problem with /exit - ovidiu123123 - 13.04.2013

//==========================[Exit HQ The Triads]============================
if(strcmp(cmdtext, "/exit", true) == 0)
{
if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
{
if PlayerToPoint(5,playerid,2215.3987,-1076.0472,1050.4844)
*then
{
SetPlayerPos(playerid,-2523.2874,1216.5012,37.4283);
SetPlayerInterior(playerid,0);
return 1;


Re: A problem with /exit - Revo - 13.04.2013

PlayerToPoint is deprecated as far as I know, use IsPlayerInRangeOfPoint instead
You're not opening the bracket in your PlayerTopoint if
There's a *then in the middle of your code.
You are not identing.
You are only showing part of your code, we're going to need all of it.
Please use [PAWN] tags
Please do not double post.