Jump to content

please save join quit


aski

Recommended Posts

are you able to perform the function

of the output from the server was

saved plis

function GivePassport 
( player, commandName, nick 
) 
local targetPlayer = 
getPlayerFromName ( tostring 
( nick )) 
local team = 
getTeamFromName ( "Urzad" ) 
if getPlayerTeam( player) == 
team then 
  
if targetPlayer == false 
then 
outputChatBox ( "Gracz nie 
jest podłączony do 
serwera" , player) 
return 
end 
  
setElementData (targetPlayer, 
"prawo" , true ) 
outputChatBox ( "Gracz .. 
nick .. otrzymał prawo 
jazdy" , player ) 
else 
outputChatBox ( "Nie jestes 
pracownikiem urzedu!" , 
player ) 
end 
end 
  
function CheckPassport 
( player, commandName, nick 
) 
local targetPlayer = 
getPlayerFromName ( tostring 
( nick )) 
local team = 
getTeamFromName ( "Urzad" ) 
if getPlayerTeam( player) == 
team then 
  
if targetPlayer == false 
then 
outputChatBox ( "Gracz nie 
jest podłączony do 
serwera" , player) 
return 
end 
  
if getElementData 
( targetPlayer, "prawo" ) 
then 
outputChatBox ( "Gracz posiada 
prawo jazdy" , player) 
 else 
outputChatBox ( "Gracz nie 
posiada prawa jazdy" , 
player ) 
end 
else 
outputChatBox ( "Nie jestes 
pracownikiem urzedu!" , 
player ) 
end 
end 
addCommandHandler 
( "zobaczprawko 
CheckPassport) 
 

sorry my bad english

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