Jump to content

Police Script!


SiZ3k

Recommended Posts

Posted

Hi, iam new in scripting iam from poland i have problems with english language i need script like this https://forum.multitheftauto.com/viewtop ... ic#p316446

I need it to my RP server.

Cop must do /arrest /freeze in polish language means /aresztuj /paralizuj

Please help me iam creating new RP fort carson server with my friend i have a problem with SHOP too i cant find SHOP script on forum means /buy milk and other

Please help!

Posted
You can't just come here and request us to make a script for you. Learn lua at https://wiki.multitheftauto.com/ and make it yourself. We will help you with problems you may have, but we won't make entire scripts for you.

sounds hard, but its true, if you dont learn it,

you keep asking and you wont ever get further,

learn lua and then post your problems here :)

Posted

Ok. I got some ideas it is good start ?

addCommandHandler( "paralizuj",
function( plr, cmd, victim )
local myName = getPlayerName( plr );
if ( isObjectInACLGroup( "user." .. myName, aclGetGroup( "Policja" ) ) ) then
local victimPlr = getPlayerFromName( victim );
if victimPlr then
local victimName = getPlayerName( victimPlr );
local x,y,z = getElementPosition( plr );
local x2,y2,z2 = getElementPosition( victimPlr );
if getDistanceBetweenPoints3D( x,y,z, x2,y2,z2 ) <= 1 then
 
                               WHAT THERE!! I COPIED EVERYTHING FROM MEDIC SCRIPT PLEASE HELP!
 
outputChatBox( myName .. " Sparaliżował".. victimName );
else
outputChatBox( victimName .. " Nie możeszgo sparaliżować ponownie!", plr );
end
else
outputChatBox( "Nie jesteś zbyt blisko żeby sparaliżować " .. victimName .. "!", plr );
end
else
outputChatBox( "Nie znaleziono osoby z imieniem '".. victimName .. "' name!", plr );
end
end
end
)

it can be script for freeze for police ?

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