SA-MP Forums Archive
[Include] Walking 0.1.0 R2 - 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] Walking 0.1.0 R2 (/showthread.php?tid=206024)



Walking 0.1.0 R2 - NoGravity - 02.01.2011

Walking 0.1.0 R2
Hi! This is my first Include uploaded on this forum.
This include allows you to completely block the possibility of running over a player in the SA-MP.


Download
To download this Include, click here.


Functions
Functions list:

TogglePlayerWalking
This function toggles player an Only Walk status. (You can not running)
Arguments:
playerid - ID player whom we are toggling the Only Walk status.
bool:toggle - Turn on or off the Only Walk status (true or false).
Returns:
No return value.

bool:IsPlayerWalking
Returns `true` if player status Only Walk is turned on or `false` if this status is turned off.
Arguments:
playerid - ID player whose status we are checking.
Returns:
True or False.

walking_OnPlayerUpdate
Just put this function into `OnPlayerUpdate` callback.
Arguments:
playerid - ID player which is updated.
Returns:
No return value.

walking_OnPlayerDisconnect
Just put this function into `OnPlayerDisconnect` callback.
Arguments:
playerid - ID player which is disconnected.
Returns:
No return value.

walking_OnPlayerEnterVehicle
Just put this function into `OnPlayerEnterVehicle` callback.
Arguments:
playerid - ID player which entered vehicle.
Returns:
No return value.


Video
[ame]http://www.youtube.com/watch?v=cS_Scj2LmPE[/ame]

Used FilterScript in this video: [pastebin]


Ending
Thanks to:
translate.******.pl/com - For help in translating the post for english
pawno.pl - For everything

Please, do not care my english - I learn English since September.

Thanks for downloading and commenting.

~ NoGravity


Re: Walking 0.1.0 R2 - Mаkaveli - 02.01.2011

wrong section its not plugin


Re: Walking 0.1.0 R2 - HACKHERS - 02.01.2011

Good but Wrong section


Re: Walking 0.1.0 R2 - LeePL - 02.01.2011

Wrong section... http://forum.sa-mp.com/forumdisplay.php?f=17
_____

Nice include


Re: Walking 0.1.0 R2 - NoGravity - 02.01.2011

Thanks for replace...


Re: Walking 0.1.0 R2 - GaGlets(R) - 02.01.2011

Nice job very useful one suggestion. Try to optimize it, there are PVars faster and low memory usage. Also you could try optimize it with callback hooking.


Re: Walking 0.1.0 R2 - The_Moddler - 02.01.2011

Quote:
Originally Posted by GaGlets®
Посмотреть сообщение
Nice job very useful one suggestion. Try to optimize it, there are PVars faster and low memory usage. Also you could try optimize it with callback hooking.
Lol pVars faster and hooking faster?




Re: Walking 0.1.0 R2 - GaGlets(R) - 02.01.2011

Though so i have never tested hooking but atleast PVar uses less memory.. ;P


Re: Walking 0.1.0 R2 - Lorenc_ - 02.01.2011

^ I agree with those people, although really great plugin and include


Re: Walking 0.1.0 R2 - GooMan - 03.01.2011

Its NOT an Plugin. It's an Include.

PS:

can you put an sample Video?