13.11.2010, 12:12
Hey,
I'm making a script involving throwing grenades/smokegrenades etc.. but how could i get the pos of the grenade thrown?
I thought of:
Could work right?
I'm making a script involving throwing grenades/smokegrenades etc.. but how could i get the pos of the grenade thrown?
I thought of:
pawn Код:
//OnPlayerUpdate
GetPlayerKeys, KEY_FIRE etc etc
Throwdistance[playerid]++ // for every (time) you hold the clickbutton, it goes +1
GetXYInfrontofplayer(x,y,Throwdistance(with some formula)
If(IsPlayerInArea,x-5,x+5,y-5,y+5)
{
//do this