Jump to content

help


Apo

Recommended Posts

Posted

hi guys please help me for make faction for accept ticket plaer

for example: i need add command for target player if the player ticket the target player ,

if targetplayer acceptticket theplayer pay money for theplayer

function mandat(player, cmd, who, ile) 
local who = getPlayerFromName(who) 
if getPlayerTeam(player) == getTeamFromName("Police") then 
takePlayerMoney(who, tonumber(ile)) 
outputChatBox("Player "..getPlayerName(who).." has been given ticket ("..tonumber(ile).."$)") 
end 
end 
addCommandHandler("ticket", mandat) 

in need command for acceptticket for targetplayer

only god (الله) اشهد ان لا اله الا الله واشهد ان محمد رسول الله

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