24.12.2016, 15:54
PHP код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_SECONDARY_ATTACK)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1154.0200,-1772.6787,16.5992)) {
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid,1491.8854,1305.9750,1093.2964);
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1494.3815,1303.5789,1093.2891)) {
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1154.0200,-1772.6787,16.5992);
}
}
return 1;
}