14.05.2014, 18:52
OnPlayerKeyStateChange
GetPlayerPos
IsPlayerInRangeOfPoint
Um Exemplo:
pawn Code:
KEY_SECONDARY_ATTACK // Enter/F
IsPlayerInRangeOfPoint
Um Exemplo:
pawn Code:
new Float: X, Float: Y, Float: Z; / no topo do gm
new cX,zY,cZ; // no topo do gm
GetPlayerPos(playerid,X,Y,Z);
cX = X;
cY= Y;
cY= Z;
if(IsPlayerInRangeOfPoint(playerid, 2.0,cX,cY,cZ))