Quote:
Originally Posted by Markx
pawn Код:
//Top
forward UpdateMap(playerid, Float:x, Float:y, Float:z);
//Somewhere
public UpdateMap(playerid, Float:x, Float:y, Float:z) { GetPlayerPos(playerid, Float:x, Float:y, Float:z); Streamer_UpdateEx(playerid, Float:x, Float:y, Float:z); }
//Under OnPlayerUpdate //You can check if the play is in a vehicle here SetTimer("UpdateMap", 1000, true);
Try that. Dunno if it caouse lag or something, lol.
|
so for the set timer one do i :-
public onPlayerUpdate
{
SetTimer("UpdateMap", 1000, true);
}
or
public onPlayerUpdate
{
SetTimer("UpdateMap", 1000, true);
return 1;
}