Raised This Month: $ Target: $400
 0% 

drop Ent befor weapon using cmd drop ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 04-13-2016 , 07:46   Re: drop Ent befor weapon using cmd drop ?
Reply With Quote #2

PHP Code:
public drop_ent(id){

  if(
g_has_ent[id]){
  
//if user has entity then you drop it with your code or function
//add here your code that drops entity


  
return PLUGIN_HANDLED;
  
//After your dropped entity , you block weapon drop by returning handled
 
}

return 
PLUGIN_CONTINUE;
//If player doesn't have entity, weapon drop won't be blocked

You shall have a global boolean array which checks if player has the entity :
new g_has_entity[33]

I think you understand.
siriusmd99 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:38.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode