aski Posted April 1, 2014 Share Posted April 1, 2014 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
iPrestege Posted April 1, 2014 Share Posted April 1, 2014 Sorry man, but the code isn't arranged as it should, we cannot understand what you want to do . Link to comment
aski Posted April 1, 2014 Author Share Posted April 1, 2014 so that the output from the server all signed up and after re-logging function unless wczytało setAccountData getAccountData Link to comment
WhoAmI Posted April 1, 2014 Share Posted April 1, 2014 Write in polish section, couse nobody is able to understand you. Stahp using google translate. I'll help you there. Link to comment
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