[Include] PlayerDynamicPos V1.0
#1

DELETED
Reply
#2

This aint a fix but a work-around.
Other than that, no returns?
Reply
#3

pawn Код:
#include <a_samp>

stock PlayerDynamicPos(playerid,Float:x,Float:y,Float:z)
{
    TogglePlayerControllable(playerid, 0);
    SetPlayerPos(playerid,Float:x,Float:y,Float:z);
    SetPlayerHealth(playerid,100000000);
    SetTimer("TimerPos",5000,false);
}

forward TimerPos(playerid,Float:x,Float:y,Float:z);
public TimerPos(playerid,Float:x,Float:y,Float:z)
{
    TogglePlayerControllable(playerid, 1);
    SetPlayerHealth(playerid,100)
}
really ?
fix:
pawn Код:
#include <a_samp>

stock PlayerDynamicPos(playerid,Float:x,Float:y,Float:z)
{
    TogglePlayerControllable(playerid, 0);
    SetPlayerPos(playerid,Float:x,Float:y,Float:z);
    SetTimerEx("TimerPos",5000,false,"d",playerid);
    return 1;
}

forward TimerPos(playerid);
public TimerPos(playerid)
{
    TogglePlayerControllable(playerid, 1);
    return 1;
}
Reply
#4

Thanks Salim_Karaja for your help
Reply
#5

Just use Streamer_UpdateEx (Incognito's Streamer Plugin).
Reply
#6

Thanks Maxips2, i didn't know that
Reply
#7

Function name is terrible. Function names should indicate what the function does, i.e. start with a verb such as do, set, get, check etc.

You also clearly have no idea what 'dynamic' means. People throw this word around so often it's lost all meaning. Dynamic means the opposite of static - it can be changed. For example, CreateDynamicObject - the object isn't static (always there) - it's loaded and unloaded when players come and go (streamed). What is dynamic about this? Nothing at all.

A better function/inc name would be SetPlayerPosWithDelay or something. Just saying.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)