12.11.2015, 19:21
i did this code it should send a warning message every 10 seconds and save player position and after 20 seconds there should be an explosion in the save x y z position of player
but i am not gettibg warning message and the explosion happen on my player even if i leave the old position where i get a warning.
this is my code
but i am not gettibg warning message and the explosion happen on my player even if i leave the old position where i get a warning.
this is my code
PHP Code:
// at the to
new Float:Pos[3][MAX_PLAYERS];
// gamemodeint
SetTimer("Airstrikemsg", 10000, 1);
PHP Code:
public Airstrikemsg()
{
SendClientMessageToAll(-1, "clear your position airstike coming!");
for(new i=0;i<MAX_PLAYERS;i++)
if(IsPlayerConnected(i))
{
GetPlayerPos(i,Pos[0][i],Pos[1][i],Pos[2][i]);
}
SetTimer("Airstrikestart", 20000, 1);
return 1;
}
public Airstrikestart(playerid)
{
CreateExplosion(Pos[0][playerid], Pos[1][playerid], Pos[2][playerid], 7, 1000.0);
return 1;
}


