Advertisement
Guest User

Untitled

a guest
Nov 24th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.75 KB | None | 0 0
  1. RecupererInterventionSniper.DoClick = function()
  2.     if ply:isCP() then
  3.         notification.AddLegacy( "Vous venez de récuperer votre équipement de d'intervention sniper" , NOTIFY_GENERIC, 2 )
  4.         surface.PlaySound( "buttons/button15.wav" )
  5.        
  6.         net.Start("interventionsniper")
  7.         net.SendToServer()
  8.         ALRPArmurierPoliceFrame:Remove()
  9.     else
  10.         notification.AddLegacy( "Vous n'êtes pas un membre des forces de l'ordres", NOTIFY_ERROR, 5 )
  11.         surface.PlaySound( "buttons/blip1.wav" )
  12.         ALRPArmurierPoliceFrame:Remove()
  13.     elseif LocalPlayer():getDarkRPVar("money") > 5000 then
  14.         notification.AddLegacy( "Vous n'avez pas assez d'argent il vous faut 5.000 €", NOTIFY_ERROR, 5 )
  15.         surface.PlaySound( "buttons/blip1.wav" )
  16.         ALRPArmurierPoliceFrame:Remove()
  17.     end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement