k0ed298 Posted April 29, 2012 Posted April 29, 2012 How do make someone a police officer in my rp server? what are the commands? please help
iFoReX Posted April 29, 2012 Posted April 29, 2012 try it addCommandHandler("cpofficer", function() createPed( ID, PosX,PosY,PosZ ) end ) ---you undestand me ?
k0ed298 Posted April 29, 2012 Author 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
k0ed298 Posted April 29, 2012 Author 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
Human Resources Staff Vinyard Posted April 29, 2012 Human Resources Staff 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.
k0ed298 Posted April 29, 2012 Author Posted April 29, 2012 i want to make an acutal player a police officer
Axel Posted April 29, 2012 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)
k0ed298 Posted April 29, 2012 Author 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
Human Resources Staff Vinyard Posted April 29, 2012 Human Resources Staff 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"
Human Resources Staff Vinyard Posted April 29, 2012 Human Resources Staff 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
Michael# Posted April 29, 2012 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
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