25.01.2020, 13:21
pawn Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_SECONDARY_ATTACK)
{
if(IsPlayerInRangeOfPoint(playerid, 2.5, 1219.9609,-1811.9579, 16.5938))
{
if(GetPlayerInterior(playerid) == 0 && GetPlayerVirtualWorld(playerid)== 0)
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid, 1494.325195,1304.942871,1093.289062);
}
}
}
return 1;
}