Advertisement
alexbegt

Untitled

Oct 4th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. function toymulti()
  2. {
  3. level._effect[ "fx_elec_sparks_sm_int_os_factory_zmb" ] = "share/raw/fx/electric/fx_elec_sparks_sm_int_os_factory_zmb";
  4.  
  5. allthetoys = GetEntArray( "toymulti", "targetname" );
  6.  
  7. foreach( toy in allthetoys )
  8. {
  9. toy thread givetoygold();
  10. }
  11. }
  12.  
  13. function givetoygold()
  14. {
  15. self waittill( "trigger", player );
  16.  
  17. target_toy = GetEnt( self.target, "targetname" );
  18.  
  19. PlayFX( level._effect["fx_elec_sparks_sm_int_os_factory_zmb"], self.origin );
  20.  
  21. self PlaySound("zmb_cha_ching");
  22.  
  23. player.score += 500;
  24.  
  25. target_toy Delete();
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement