26.11.2011, 05:09
pawn Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_SECONDARY_ATTACK)
{
if(IsPlayerInRangeOfPoint(playerid, 1.0, 1170.6563,-1489.6108,22.7553))
{
SetPlayerPos(playerid, 2476.6519,-1668.5076,-1.9851);
}
}
return 1;
}