16.11.2010, 12:12
Coloque em OnPlayerKeyStateChange
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (newkeys & KEY_FIRE)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, Coordenadas X,Coordenadas Y,Coordenadas Z))
{
SetPlayerPos(playerid,Coordenadas X,Coordenadas Y,Coordenadas Z);
SetPlayerInterior(playerid,ID do Interior);
}
}
return 1;
}