[FilterScript] Walking Styles - For Roleplay servers
#1

Walking Styles Filterscript by BenJackster

Simple but useful.


Introduction:

This is my old Filterscript, and gladly - this is my second release. Well, it's my first release of an Filterscript so please do not judge me. If you're gonna use it, give me credits, and please do not remove the credits.

Screenshot:

When you type the command '/ws'.



Download & How to install:

Downloads:

Walking Style's .amx file - Solidfiles.com
Walking Style's .pwn file - Solidfiles.com
Walking Style's .amx file - mediafire.com
Walking Style's .pwn file - mediafire.com

Installing:

After you've downloaded those 2 files, paste them into the Filterscript's folder. After you've done that, open server.cfg and go to the Filterscripts line.
Type "walkingstyles" infront of it, and save the server.cfg. Restart your server and enjoy it.

Using them In-Game:

Type the command "/ws" and a dialog would display. Choose your walking style and walk like an O.G.

Current Known Bugs:

No bugs at all.

Credits:

Me (Ben Jackster) for making this script.
Kalcor and the SA-MP team for SA-MP.

__________________________________________________ _________________________________________

Well, that's it! Enjoy it and don't remove the credits. Also, don't forget to rep me.
Reply
#2

Anybody?
Reply
#3

Why not do this? Less checking.

pawn Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_WALK)
    {
        if( ((newkeys & KEY_UP) || (newkeys & KEY_DOWN) || (newkeys & KEY_LEFT) || (newkeys & KEY_RIGHT) ||
            (oldkeys & KEY_UP) || (oldkeys & KEY_DOWN) || (oldkeys & KEY_LEFT) || (oldkeys & KEY_RIGHT)) &&
            GetPlayerState(playerid) == PLAYER_STATE_ONFOOT ) walktime[playerid] = SetTimerEx("WalkAnim",200,0,"d",playerid);
    }
    else if(oldkeys & KEY_WALK)
    {
   
        if( ((newkeys & KEY_UP) || (newkeys & KEY_DOWN) || (newkeys & KEY_LEFT) || (newkeys & KEY_RIGHT)) &&
            GetPlayerState(playerid) == PLAYER_STATE_ONFOOT ) walktime[playerid] = SetTimerEx("WalkAnim",200,0,"d",playerid);
    }
    return 1;
}
Reply
#4

Quote:
Originally Posted by [uL]Pottus
View Post
Why not do this? Less checking.

pawn Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_WALK)
    {
        if( ((newkeys & KEY_UP) || (newkeys & KEY_DOWN) || (newkeys & KEY_LEFT) || (newkeys & KEY_RIGHT) ||
            (oldkeys & KEY_UP) || (oldkeys & KEY_DOWN) || (oldkeys & KEY_LEFT) || (oldkeys & KEY_RIGHT)) &&
            GetPlayerState(playerid) == PLAYER_STATE_ONFOOT ) walktime[playerid] = SetTimerEx("WalkAnim",200,0,"d",playerid);
    }
    else if(oldkeys & KEY_WALK)
    {
   
        if( ((newkeys & KEY_UP) || (newkeys & KEY_DOWN) || (newkeys & KEY_LEFT) || (newkeys & KEY_RIGHT)) &&
            GetPlayerState(playerid) == PLAYER_STATE_ONFOOT ) walktime[playerid] = SetTimerEx("WalkAnim",200,0,"d",playerid);
    }
    return 1;
}
Mybe Are same Dude
Reply
#5

I have a question, when the player will log off and connect into the server will the walking style save? Does the same thing applies if the server will restart?
Reply
#6

A pastebin link would be a good idea.
Reply
#7

Nice
Reply
#8

Not bad.
Reply
#9

Nice work mate, keep it up!
Reply
#10

smart
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)