weird command does not work
#2

Not sure but seems your House Moderator command sets your level to something instead of 1..
Maybe 0, 2 or even 3..
Can you show us House Moderator set command?
Or try this, Should work..
PHP код:
CMD:hname(playeridparams[])
{
    if(
PlayerInfo[playerid][pAdmin] >= 1338 && PlayerInfo[playerid][pHouseModerator] != 1)
    {
        
SendClientMessageEx(playeridCOLOR_GRAD2"You are not authorized to use that command.");
        return 
1;
    }
    new 
string[128], houseidownername[24];
    if(
sscanf(params"ds[24]"houseidownername)) return SendClientMessageEx(playeridCOLOR_GREY"USAGE: /hname [houseid] [name]");
    
format(HouseInfo[houseid][hOwnerName], 24"%s"ownername);
    
format(stringsizeof(string), "You have set the house owner to %s"ownername);
    
HouseInfo[houseid][hOwned] = 1;
    
SendClientMessageEx(playeridCOLOR_WHITEstring);
    
ReloadHouseText(houseid);
    
SaveHouse(houseid);
    
format(stringsizeof(string), "%s has edited HouseID %d's Owner to %s."GetPlayerNameEx(playerid), houseidownername);
    
Log("logs/hedit.log"string);
    return 
1;

Reply


Messages In This Thread
weird command does not work - by IndependentGaming - 19.10.2015, 17:18
Re: weird command does not work - by karemmahmed22 - 19.10.2015, 18:35
Re: weird command does not work - by AbyssMorgan - 19.10.2015, 18:46
Re: weird command does not work - by karemmahmed22 - 19.10.2015, 18:51
Re: weird command does not work - by Crystallize - 19.10.2015, 21:05

Forum Jump:


Users browsing this thread: 2 Guest(s)