Jump to content

setPedWalkingStyle...


WiBox

Recommended Posts

You can't really add new IDs for walking styles, but you can use the new custom animations function engineReplaceAnimation and override* animations of a specific walking style for a particular ped (you'll have to call this function on each client so everyone sees the same thing). If you're looking for which anims are used on which walking style, you should check out Animation Groups     (e.g., walking style 132 uses animation group sexywoman of the ped block)

 

* You can only override default animations with custom loaded animations.

Edited by MrTasty
Link to comment
45 minutes ago, TheBoyPlayer said:
  1. function adminOnline (thePlayer, command)
  2. local playerid = getElementData( thePlayer, "id" )
  3. local accName = getAccountName ( getPlayerAccount ( thePlayer ) )
  4. outputChatBox("#ff4500[Admins]:", thePlayer, 255, 255, 255, true)
  5. if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then
  6. outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffFounder", thePlayer, 255, 255, 255, true)
  7. elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "SuperModerator" ) ) then
  8. outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffDeveloper", thePlayer, 255, 255, 255, true)
  9. elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "Moderator" ) ) then
  10. outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffDirector", thePlayer, 255, 255, 255, true)
  11. end
  12. end
  13. addCommandHandler("admins", adminOnline)

Whaaaaaaat ?????????????

 

@N3xT

@Dutchman101

Link to comment
1 minute ago, TheBoyPlayer said:

 



 

    if(strcmp(cmd, "/adminchat", true) == 0 || strcmp(cmd, "/a", true) == 0)
    {
        if(PINFO[playerid][pAdmin] < 1) return SCM(playerid, COLOR_YELLOW2, "Error: You are not admin.");
        if(IsPlayerConnected(playerid))
        {
            GetPlayerName(playerid, sendername, sizeof(sendername));
            new length = strlen(cmdtext);
            while ((idx < length) && (cmdtext[idx] <= ' '))
            {
                idx++;
            }
            new offset = idx;
               new result[64];
            while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
            {
                result[idx - offset] = cmdtext[idx];
                idx++;
            }
            result[idx - offset] = EOS;
            if(!strlen(result)) return SCM(playerid,COL_SYN,"Syntax: /a <Text>");
            new arank[64];
            if(PlayerInfo[playerid][pAdmin] == 1) { arank = "Admin"; }
            else if(PlayerInfo[playerid][pAdmin] == 2) { arank = "Admin"; }
            else if(PlayerInfo[playerid][pAdmin] == 3) { arank = "Admin"; }
            else if(PlayerInfo[playerid][pAdmin] == 4) { arank = "Admin"; }
            else if(PlayerInfo[playerid][pAdmin] == 5) { arank = "Admin"; }
            else if(PlayerInfo[playerid][pAdmin] == 6) { arank = "Supervisor"; }
            else if(PlayerInfo[playerid][pAdmin] == 7) { arank = "Hoster"; }
            else if(PlayerInfo[playerid][pAdmin] == 8) { arank = "Hoster"; }
            else if(PlayerInfo[playerid][pAdmin] == 9) { arank = "Hoster"; }
            else if(PlayerInfo[playerid][pAdmin] == 10) { arank = "CM Manager"; }
            else if(PlayerInfo[playerid][pAdmin] == 11) { arank = "Co Founder"; }
            else if(PlayerInfo[playerid][pAdmin] == 12) { arank = "CM Founder"; }
            else if(PlayerInfo[playerid][pAdmin] == 13) { arank = "CM Owner"; }
            else if(PlayerInfo[playerid][pAdmin] == 14) { arank = "CM Scripter"; }
            else { arank = "Owner"; }
            format(string, sizeof(string), "{E04343}<< {11E8E8}%s {C60000}%s:{FFFFFF} %s {E04343}>>", arank, sendername, result);
            SendAdminMessage(COLOR_GG, string);
        }
        return 1;
    }
        if(strcmp(cmd, "/leaderchat", true) == 0 || strcmp(cmd, "/lc", true) == 0)
        {
            if(PINFO[playerid][pLeader] < 1 && PINFO[playerid][pAdmin] < 1) return SCM(playerid, COLOR_YELLOW2, "Error: Only Leader's Can Use This Command. ");
            if(IsPlayerConnected(playerid))
            {
                GetPlayerName(playerid, sendername, sizeof(sendername));
                new length = strlen(cmdtext);
                while ((idx < length) && (cmdtext[idx] <= ' '))
                {
                    idx++;
                }
                new offset = idx;
                new result[64];
                while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
                {
                    result[idx - offset] = cmdtext[idx];
                    idx++;
                }
                result[idx - offset] = EOS;
                if(!strlen(result)) return SCM(playerid,COL_SYN,"Syntax: /lc <Text>");
                new arank[64];
                if(PlayerInfo[playerid][pLeader] == 1) { arank = "{2400ff}<< Police Department Leader >>"; }
                else if(PlayerInfo[playerid][pLeader] == 2) { arank = "{3319ce}<< FBI Leader >>"; }
                else if(PlayerInfo[playerid][pLeader] == 3) { arank = "{100072}<< National Guard Leader >>"; }
                else if(PlayerInfo[playerid][pLeader] == 4) { arank = "{ff0000}<< Paramedic Leader >>"; }
                else if(PlayerInfo[playerid][pLeader] == 5) { arank = "{5D7E8D}<< The Silence Mafia Leader >>"; }
                else if(PlayerInfo[playerid][pLeader] == 6) { arank = "{333334}<< The Killers Mafia Leader >>"; }
                else if(PlayerInfo[playerid][pLeader] == 7) { arank = "{9fff6a}<< Mayor >>"; }
                else if(PlayerInfo[playerid][pLeader] == 8) { arank = "{940f21}<< Hitman Agency Leader >>"; }
                else if(PlayerInfo[playerid][pLeader] == 9) { arank = "{ad0a9c}<< News Reporter Leader >>"; }
                else if(PlayerInfo[playerid][pLeader] == 10) { arank = "{fffc00}<< Taxi Company Leader >>"; }
                else if(PlayerInfo[playerid][pLeader] == 11) { arank = "{00a2ff}<< School Instructor Leader >>"; }
                else if(PlayerInfo[playerid][pLeader] == 12) { arank = "{05b11d}<< Dangerous Tigers Mafia Leader >>"; }
                else if(PlayerInfo[playerid][pLeader] == 13) { arank = "{ffcc00}<< Legendary Men Mafia Leader >>"; }
                else if(PlayerInfo[playerid][pLeader] == 14) { arank = "{B32CF6}<< Fast N Furious Mafia Leader >>"; }
                else if(PlayerInfo[playerid][pLeader] == 15) { arank = "{00ECEC}<< Storm Men Mafia Leader >>"; }
                else if(PlayerInfo[playerid][pLeader] == 16) { arank = "{d1cfcd}<< Tow Truck Company Leader >>"; }
                else if(PlayerInfo[playerid][pLeader] == 17) { arank = "{FF0000}<< Staff / Founder >>"; }
                else if(PlayerInfo[playerid][pLeader] == 19) { arank = "{0E47FF}<< Top Boys Leader >>"; }
                else if(PlayerInfo[playerid][pLeader] == 20) { arank = "{60F565}<< SFPD Leader >>"; }
                else if(PlayerInfo[playerid][pAdmin] == 1) { arank = "{FF0000}<< Admin >>"; }
                else if(PlayerInfo[playerid][pAdmin] == 2) { arank = "{FF0000}<< Admin >>"; }
                else if(PlayerInfo[playerid][pAdmin] == 3) { arank = "{FF0000}<< Admin >>"; }
                else if(PlayerInfo[playerid][pAdmin] == 4) { arank = "{FF0000}<< Admin >>"; }
                else if(PlayerInfo[playerid][pAdmin] == 5) { arank = "{FF0000}<< Admin >>"; }
                else if(PlayerInfo[playerid][pAdmin] == 6) { arank = "{FF0000}<< Supervisor >>"; }
                else if(PlayerInfo[playerid][pAdmin] == 7) { arank = "{FF0000}<< Hoster >>"; }
                else if(PlayerInfo[playerid][pAdmin] == 8) { arank = "{FF0000}<< Hoster >>"; }
                else if(PlayerInfo[playerid][pAdmin] == 9) { arank = "{FF0000}<< Hoster >>"; }
                else if(PlayerInfo[playerid][pAdmin] == 10) { arank = "{FF0000}<< Manager >>"; }
                else if(PlayerInfo[playerid][pAdmin] == 11) { arank = "{FF0000}<< Co-Founder >>"; }
                else if(PlayerInfo[playerid][pAdmin] == 12) { arank = "{FF0000}<< CM Founder >>"; }
                else if(PlayerInfo[playerid][pAdmin] == 13) { arank = "{FF0000}<< CM Owner >>"; }
                else if(PlayerInfo[playerid][pAdmin] == 14) { arank = "{FF0000}<< Scripter >>"; }
                format(string, sizeof(string), "{0000FF}%s {33CCFF}%s:{FFFFFF} %s {0000FF}", arank, sendername, result);
                if (PlayerInfo[playerid][pLeader] >= 1 || PlayerInfo[playerid][pAdmin] > 0)
                {
                    SendLeaderMessage(COLOR_GG, string);
                    SendAdminMessage(COLOR_Amir, string);
                    printf(" %s: %s", sendername, result);
                }
            }
            return 1;
            }

[/PHP]

 

1 minute ago, aka Blue said:

Relax. He confused the post for sure 

yes yes Sure ::lol:

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...