forward Teszt();public Teszt(){ for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerInRangeOfPoint(i, 8.0, -217.8439,979.1686,19.5041)) SetPlayerPos(playerid, 322.197998,302.497985,999.148437); else if(IsPlayerInRangeOfPoint(i, 8.0, -208.3732,978.6711,19.1489)) SetPlayerPos(playerid, -208.3732,978.6711,19.1489); } return 1;}
SetTimer(\"Teszt\", 1000, true);
public OnPlayerUpdate ( playerid ){ if ( IsPlayerInRangeOfPoint ( playerid , 2.0, -217.8439,979.1686,19.5041 ) ) SetPlayerPos ( playerid, 322.197998, 302.497985, 999.148437 ), SetPlayerInterior ( playerid, 5 ); // Bejárat else if ( IsPlayerInRangeOfPoint ( playerid, 2.0, -208.3732,978.6711,19.1489 ) ) SetPlayerPos ( playerid, -220.8439,979.1686,19.5041 ), SetPlayerInterior ( playerid, 0 ); // Kijárat}
{ if ( IsPlayerInRangeOfPoint ( playerid , 2.0, -217.8439,979.1686,19.5041 ) )SetPlayerPos ( playerid, 322.0678,304.4984,999.1484 ),SetPlayerInterior ( playerid, 5 ); // Bejárat else if ( IsPlayerInRangeOfPoint ( playerid, 2.0, 322.1519,302.5504,999.1484 ) )SetPlayerPos ( playerid, -214.9388,978.4625,19.3382 ),SetPlayerInterior ( playerid, 0 ); // Kijárat}
Create3DTextLabel(\"Rendõrség\",0x008080FF,-217.8439,979.1686,19.5041,7.0,0);Create3DTextLabel(\"Kijárat\",0x008080FF, 322.2707,302.3593,999.1484,7.0,1);
{ if ( IsPlayerInRangeOfPoint ( playerid , 7.0, -217.8439,979.1686,19.5041 ) )SetPlayerPos ( playerid, 322.9493,306.9644,999.1484 ),SetPlayerInterior ( playerid, 5 ); // Bejárat else if ( IsPlayerInRangeOfPoint ( playerid, 7.0, 322.2707,302.3593,999.1484 ) )SetPlayerPos ( playerid, -211.6532,979.1840,19.3232 ),SetPlayerInterior ( playerid, 0 ); // Kijárat}
IsPlayerInRangeOfPoint ( playerid , 7.0, -217.8439,979.1686,19.5041 )-nélállítsd át a 7.0-t arra az értékre amennyi radián belül \"mûködjön\" a dolog