Jump to content

How od i make someone a police officer?


k0ed298

Recommended Posts

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

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...