View Single Post
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 07-05-2016 , 09:18   Re: Deathrun: CTSafe buttons (prevent CTs from activating traps)
Reply With Quote #3

I can give you some suggestions:
1. Use button id instead of model
2. Save buttons to one file

You can look into this post:

https://forums.alliedmods.net/showth...16#post2433716

It works with button id , why you use model?

Look:

PHP Code:
if(pev_valid(iEnt) && pev(iEntpev_iuser2) == MARKED_BUTTON)
{
    
pev(iEntpev_modelszModelcharsmax(szModel))
    
fprintf(iFilePointer"%s %s %d^n"g_szButtons[i], szModeliEnt)
    
iCount++



PHP Code:
if(pev_valid(iEnt) && pev(iEntpev_iuser2) == MARKED_BUTTON)
{
    
fprintf(iFilePointer"%s %d^n"g_szButtons[i],  iEnt// button class and button's id , why to save by model if you can simply add iEnt ,which is button id?
    
iCount++


Last edited by siriusmd99; 07-05-2016 at 09:19.
siriusmd99 is offline