MegastoRM

Untitled

Dec 25th, 2015
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.73 KB | None | 0 0
  1. public FwdTraceLine(Float:start[3], Float:end[3], conditions, id, trace)
  2. {    
  3.     if (is_user_alive(id) && is_user_connected(id))
  4.     {
  5.         new target = get_tr2(trace, TR_pHit)        
  6.         if (pev_valid(target))
  7.         {
  8.             static classname[32]
  9.             pev(target, pev_classname, classname, charsmax(classname))
  10.             if (equal(classname, "KlasaTogaStoSkidas") && pev(id, pev_button) & IN_USE)
  11.             {
  12.                 static owner, ownername[32]
  13.                 owner = pev(target, pev_owner)
  14.                 if(id != owner) return FMRES_IGNORED
  15.                 //dodaj mine igracu ili sta vec
  16.                 remove_entity(target)
  17.             }
  18.         }
  19.     }
  20.     return FMRES_IGNORED
  21. }
Advertisement
Add Comment
Please, Sign In to add comment