Guest User

Untitled

a guest
Sep 2nd, 2017
1,429
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.54 KB | None | 0 0
  1. Prebuild functions for the developers who want to add support for the advanced kevlar system.
  2.  
  3. -- Assign the light kevlar to the player.
  4. cpk.GiveLightKelvar( ply )
  5.  
  6. -- Assign the green kevlar to the player.
  7. cpk.GiveGreenKelvar( ply )
  8.  
  9. -- Assign the blue kevlar to the player.
  10. cpk.GiveBlueKelvar( ply )
  11.  
  12. -- Assign the light helm to the player.
  13. cpk.GiveLightHelm( ply )
  14.  
  15. -- Assign the green helm to the player.
  16. cpk.GiveGreenHelm( ply )
  17.  
  18. -- Assign the blue helm to the player.
  19. cpk.GiveBlueHelm( ply )
  20.  
  21. -- Remove the light kevlar from the player.
  22. cpk.RemoveLightKelvar( ply )
  23.  
  24. -- Remove the green kevlar from the player.
  25. cpk.RemoveGreenKelvar( ply )
  26.  
  27. -- Remove the blue kevlar from the player.
  28. cpk.RemoveBlueKelvar( ply )
  29.  
  30. -- Remove the light helm from the player.
  31. cpk.RemoveLightHelm( ply )
  32.  
  33. -- Remove the green helm from the player.
  34. cpk.RemoveGreenHelm( ply )
  35.  
  36. -- Remove the blue helm from the player.
  37. cpk.RemoveBlueHelm( ply )
  38.  
  39. -- Create a notify through the system.
  40. cpk.CreateNotify( ply, text )
  41.  
  42. -- Sync kevlars with everyone.
  43. ply (the player that needs the kevlar equipped), models ( the model you want to attach on the player ), vec ( vector postion of the model on the player ), ang ( angle postion of the model on the player ).
  44. SyncKevlar(ply, models, vec, ang)
  45.  
  46. -- Sync helms with everyone.
  47. ply (the player that needs the helm equipped), models ( the model you want to attach on the player ), vec ( vector postion of the model on the player ), ang ( angle postion of the model on the player ).
  48. SyncHelm(ply, models, vec, ang)
Advertisement
Add Comment
Please, Sign In to add comment