SA-MP Forums Archive
[Include] PlayerDynamicPos V1.0 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] PlayerDynamicPos V1.0 (/showthread.php?tid=443154)



PlayerDynamicPos V1.1 - migliore9 - 10.06.2013

DELETED


Re: PlayerDynamicPos V1.0 - justinnater - 11.06.2013

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


Re: PlayerDynamicPos V1.0 - Salim_Karaja - 11.06.2013

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



Re: PlayerDynamicPos V1.0 - migliore9 - 11.06.2013

Thanks Salim_Karaja for your help


Re: PlayerDynamicPos V1.0 - Maxips2 - 11.06.2013

Just use Streamer_UpdateEx (Incognito's Streamer Plugin).


Re: PlayerDynamicPos V1.0 - migliore9 - 11.06.2013

Thanks Maxips2, i didn't know that


Re: PlayerDynamicPos V1.0 - MP2 - 16.06.2013

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.