Streamer_UpdateEx for updating objects? :3
#7

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;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)