12.03.2015, 18:42
PHP Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(PRESSED(KEY_SECONDARY_ATTACK))
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1462.1456, -1012.0506, 26.843)) SetPlayerPos(playerid, 1462.1456, -1012.0506, 26.843);
else if(IsPlayerInRangeOfPoint(playerid, 2.0, 1456.6033, -985.8455, 996.1036)) SetPlayerPos(playerid, 1456.6033, -985.8455, 996.1036);
else return SendClientMessage(playerid, -1, "Vous n'кtes pas au bon endroit");
}
return 0;
}