Help with this command
#3

Try this:
PHP код:
CMD:setlandowner(playeridparams[])
{
    if(
PlayerInfo[playerid][pAdmin] >= 5)
    {
        new 
landplayername[24], string[128];
        if(
sscanf(params"ds[24]"landplayername)) return SendClientMessage(playeridCOLOR_WHITE"USAGE: /setlandowner [landid] [name]");
        if(
LandInfo[land][landCreated] == 1)
        {
            
format(LandInfo[land][landOwner], 24"%s"playername);
            
format(stringsizeof(string), "You have set land %d's owner to '%s'"landLandInfo[land][landOwner]);
            
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
            
format(stringsizeof(string), "%s's Land (%d)"LandInfo[land][landOwner], land);
            
UpdateDynamic3DTextLabelText(LandInfo[land][landText], COLOR_REALREDstring);
            
LandInfo[land][landOwned] = 1;
        }
        else
        {
            
SendClientMessage(playeridCOLOR_GREY"That land does not exist.");
        }
    }
    return 
1;

Reply


Messages In This Thread
Help with this command - by Alpha000 - 23.11.2015, 12:38
Re: Help with this command - by MeCom - 23.11.2015, 13:30
Re: Help with this command - by XBrianX - 23.11.2015, 16:06

Forum Jump:


Users browsing this thread: 1 Guest(s)