View Single Post
Author Message
kimilover
Junior Member
Join Date: Oct 2010
Old 06-13-2014 , 11:19   Boolean at an origin
Reply With Quote #1

Hi can i use a boolean for restricted an origin for example this.
PHP Code:
new boolused_or[32];
new 
boolused_id[32];

public 
origin(ident) {
    new 
Floators[3];
    new 
loc pev(entpev_originors);

    if (!
used_id[id] && !used_or[loc]) {
        
console_print(0"LOC ADDED!");
        
used_or[loc] = true;
        
used_id[id] = true;
    }
    else {
        
console_print(0"LOC IS USED ALREADY");
    }


with this way i can save different locs to dont use a user this origin again?
kimilover is offline