29.06.2009, 20:47
you have to set a timer in nGameMdeInit
then use the PlayerToPoint function
then do your action
example
for more info visit https://sampwiki.blast.hk/
then use the PlayerToPoint function
then do your action
example
pawn Код:
public OnGameModeInit()
{
SetTimer("MyAction", 100, true);
return 1;
}
forward MyAction();
public MyAction()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(PlayerToPoint(Float:Radi, playerid, PosX, PosX, PosZ))
{
//The Action
}
}
}