[HELP]need CMD help
#4

Try this command (you need to have zcmd include + sscanf)
pawn Код:
command(edithinterior,playerid,params[])
{
    new houseid, Float:hX, Float: hY, Float: hZ, intID;

    if(sscanf(params,"ifffi",houseid,hX,hY,hZ,intID)) return
                SendClientMessage(playerid,COLOR_GREY,"USAGE: /edithinterior [houseid] [hX] [hY] [hZ] [interior ID]");

    else
    {
      if(IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >= 105)
      {
            HouseInfo[houseid][hExitx] = hX;
            HouseInfo[houseid][hExity] = hY;
            HouseInfo[houseid][hExitz] = hZ;
            HouseInfo[houseid][hWorld] = intID;
            format(string,sizeof(string), "-OperServ- Houseid's %d interior has been set to %d (%f,%f,%f)",houseid,intID,hX,hY,hZ);
            SendClientMessageToAll(COLOR_LIGHTBLUE,string);
        }
        else SendClientMessage(playerid,COLOR_GREY,"You're not allowed to use this command!");
    }
    return 1;
}
Reply


Messages In This Thread
[HELP]need CMD help - by breakpaper - 19.11.2009, 14:58
Re: [HELP]need CMD help - by Jefff - 19.11.2009, 15:20
Re: [HELP]need CMD help - by breakpaper - 19.11.2009, 16:02
Re: [HELP]need CMD help - by Luka P. - 19.11.2009, 16:15
Re: [HELP]need CMD help - by breakpaper - 19.11.2009, 19:06
Re: [HELP]need CMD help - by Jefff - 19.11.2009, 20:43
Re: [HELP]need CMD help - by breakpaper - 20.11.2009, 05:30

Forum Jump:


Users browsing this thread: 2 Guest(s)