WiBox Posted October 18, 2018 Share Posted October 18, 2018 Hey guys I'm trying to add on my server a new walk style but the things.. I'm trying to find a way to add a new ID for walkstyles.. Is there a way so I can do that? Link to comment
Addlibs Posted October 18, 2018 Share Posted October 18, 2018 (edited) 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 October 18, 2018 by MrTasty Link to comment
WiBox Posted October 18, 2018 Author Share Posted October 18, 2018 Thanks a lot, you're helpful as ever. Link to comment
KillerX Posted October 18, 2018 Share Posted October 18, 2018 45 minutes ago, TheBoyPlayer said: function adminOnline (thePlayer, command) local playerid = getElementData( thePlayer, "id" ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) outputChatBox("#ff4500[Admins]:", thePlayer, 255, 255, 255, true) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffFounder", thePlayer, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "SuperModerator" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffDeveloper", thePlayer, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "Moderator" ) ) then outputChatBox("#ff0000Admin: #ffffff"..getPlayerName(player).." ("..playerid..") #ff0000Rank: #ffffffDirector", thePlayer, 255, 255, 255, true) end end addCommandHandler("admins", adminOnline) Whaaaaaaat ????????????? @N3xT @Dutchman101 Link to comment
aka Blue Posted October 18, 2018 Share Posted October 18, 2018 (edited) 7 minutes ago, KillerX said: Whaaaaaaat ????????????? @N3xT @Dutchman101 Relax. He confused the post for sure Edited October 18, 2018 by aka Blue Link to comment
KillerX Posted October 18, 2018 Share Posted October 18, 2018 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] == { 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] == { 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] == { 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 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now