Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public FwdTraceLine(Float:start[3], Float:end[3], conditions, id, trace)
- {
- if (is_user_alive(id) && is_user_connected(id))
- {
- new target = get_tr2(trace, TR_pHit)
- if (pev_valid(target))
- {
- static classname[32]
- pev(target, pev_classname, classname, charsmax(classname))
- if (equal(classname, "KlasaTogaStoSkidas") && pev(id, pev_button) & IN_USE)
- {
- static owner, ownername[32]
- owner = pev(target, pev_owner)
- if(id != owner) return FMRES_IGNORED
- //dodaj mine igracu ili sta vec
- remove_entity(target)
- }
- }
- }
- return FMRES_IGNORED
- }
Advertisement
Add Comment
Please, Sign In to add comment