19.03.2014, 09:36
Hello lads so here is my exit command which as i realised its not pretty efficient..
But anyway the problem is that when i try to exit LSPD it says you are not near the exit point of LS BANK
So how i could make it for each position certainly??
pawn Код:
CMD:exit(playerid,params[])
{
#pragma unused params
if(!IsPlayerInRangeOfPoint(playerid, 2.0, 1456.424682, -987.705749, 996.105041)) return SendClientMessage(playerid,-1,""COL_RED"ERROR"COL_WHITE":You have to be near the exit point to exit LS BANK!");
{
SetPlayerPos(playerid,1791.145019 +2, -1777.106567 +2, 13.544099 +1);
}
if(!IsPlayerInRangeOfPoint(playerid, 2.0, 1474.0437, -1751.1372, 3285.2859)) return SendClientMessage(playerid,-1,""COL_RED"ERROR"COL_WHITE":You have to be near the exit point to exit LSPD!");
{
SetPlayerPos(playerid,1554.307495 -2, -1675.323852 -1, 15.770359);
}
return 1;
}
So how i could make it for each position certainly??