k0ed298 Posted April 29, 2012 Share Posted April 29, 2012 How do make someone a police officer in my rp server? what are the commands? please help Link to comment
iFoReX Posted April 29, 2012 Share Posted April 29, 2012 try it addCommandHandler("cpofficer", function() createPed( ID, PosX,PosY,PosZ ) end ) ---you undestand me ? Link to comment
k0ed298 Posted April 29, 2012 Author Share Posted April 29, 2012 where do i put that? I just want a ingame command. Ive already got the resources and shit. I just need the ingame command Link to comment
k0ed298 Posted April 29, 2012 Author Share Posted April 29, 2012 try it addCommandHandler("cpofficer", function() createPed( ID, PosX,PosY,PosZ ) end ) ---you undestand me ? ? I just want a ingame command. Ive already got the resources and :~. I just need the ingame command Link to comment
Moderators Vinyard Posted April 29, 2012 Moderators Share Posted April 29, 2012 Well if you got the resources you can try /makeshop 7 *Police officer Id* [ Command | Type = 7 For a simple NPC | Id ]. Hope I helped. Link to comment
k0ed298 Posted April 29, 2012 Author Share Posted April 29, 2012 i want to make an acutal player a police officer Link to comment
Axel Posted April 29, 2012 Share Posted April 29, 2012 If you got vG then: /setfactionleader [Name] 1 (/commands for a list of player commands, and /ah for a list of admin commands) Link to comment
k0ed298 Posted April 29, 2012 Author Share Posted April 29, 2012 how do i give the player police clothes? Link to comment
k0ed298 Posted April 29, 2012 Author Share Posted April 29, 2012 If you got vG then:/setfactionleader [Name] 1 (/commands for a list of player commands, and /ah for a list of admin commands) what is the id for police clothes? and how do i give them to the plauyer Link to comment
Moderators Vinyard Posted April 29, 2012 Moderators Share Posted April 29, 2012 Well in this case, use /Setskin but if the player is in faction "Police" or how you named he can do /duty Edit: Don't double post Use "Edit" Link to comment
k0ed298 Posted April 29, 2012 Author Share Posted April 29, 2012 what is the id for the police skin ? Link to comment
Moderators Vinyard Posted April 29, 2012 Moderators Share Posted April 29, 2012 https://wiki.multitheftauto.com/wiki/Skins_Page_12 - Here are the Police skins For cadet suit you can use ID 71 https://wiki.multitheftauto.com/wiki/Skins_Page_3 Link to comment
Michael# Posted April 29, 2012 Share Posted April 29, 2012 try it addCommandHandler("cpofficer", function() createPed( ID, PosX,PosY,PosZ ) end ) ---you undestand me ? I think this is better: addCommandHandler ( 'cpofficer', function ( uPlayer, sCommand, nID, nX, nY, nZ ) if ( not nID or not nX or not nY or not nZ ) then return end createPed ( tonumber ( nID ), tonumber ( nX ), tonumber ( nY ), tonumber ( nZ ) ); end ) Also, tabulate your code 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