Raised This Month: $ Target: $400
 0% 

[Request] Block Usp Damage


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 10-08-2021 , 13:30   Re: [Request] Block Usp Damage
Reply With Quote #6

Code:
    new ent = create_entity("game_player_equip")     DispatchKeyValue( ent, "item_assaultsuit", "1" )     DispatchKeyValue( ent, "weapon_knife", "1" )     DispatchKeyValue( ent, "weapon_elite", "5" )     DispatchSpawn(ent);
It's all the same per ent = create_entity("game_player_equip") albeit variable or macro. Use the same perspective and confront yourself with. Here's how it looks.

Code:
#include amxmodx #include engine public plugin_precache() DispatchKeyValue( create_entity("game_player_equip"), "item_assaultsuit", "1" ) && DispatchKeyValue( create_entity("game_player_equip"), "weapon_knife", "1" ) && DispatchKeyValue( create_entity("game_player_equip"), "weapon_elite", "5" ) && DispatchSpawn(create_entity("game_player_equip"));

Macro or not ent is still create_entity("game_player_equip")

Static instead of variable is what I would have chosen.
new const instead of variable is what I would have chosen.

Code:
#include amxmodx #include engine public plugin_precache() {     new const ent = create_entity("game_player_equip")     DispatchKeyValue( ent, "item_assaultsuit", "1" )     DispatchKeyValue( ent, "weapon_knife", "1" )     DispatchKeyValue( ent, "weapon_elite", "5" )     DispatchSpawn(ent); }
__________________

Last edited by DJEarthQuake; 10-08-2021 at 15:15. Reason: obvious typo has static in
DJEarthQuake 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 23:57.


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