18.06.2013, 03:18
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/adminroof", true)) { if(IsPlayerInRangeOfPoint(playerid, 3.0, 1847.7333,-1761.9608,13.5469)) { SetPlayerPos(playerid, 1889.0286,-1782.9777,25.7911);//Naar boven SetPlayerInterior(playerid, 0); return 1; } } if(strcmp(cmdtext, "/admindown", true)) { if(IsPlayerInRangeOfPoint(playerid, 3.0, 1889.0286,-1782.9777,25.7911)) { SetPlayerPos(playerid, 1847.7333,-1761.9608,13.5469);//Naar beneden SetPlayerInterior(playerid, 0); return 1; } } return 1; }
EDIT:
@Sam1: Great minds think alike haha. Beat me to it I'll admit though.. Might want to correct the 2nd IsPlayerInRange line, it still has the misplaced parameter discussed earlier in your code.