[HELP]PENLS Help :/
#4

just add this to your script

pawn Код:
if(strcmp(cmd, "/sellallhouses", true) == 0 && IsPlayerConnected(playerid))
    {
        if ((IsPlayerAdmin(playerid)))
        {
          for(new all=0; all< sizeof(HouseInfo); all++)
          {
            HouseInfo[all][hHel] = 0;
            HouseInfo[all][hArm] = 0;
            HouseInfo[all][hHealthx] = 0;
            HouseInfo[all][hHealthy] = 0;
            HouseInfo[all][hHealthz] = 0;
            HouseInfo[all][hArmourx] = 0;
            HouseInfo[all][hArmoury] = 0;
            HouseInfo[all][hArmourz] = 0;
            HouseInfo[all][hLock] = 1;
            HouseInfo[all][hOwned] = 0;
            HouseInfo[all][hVec] = 516;
            HouseInfo[all][hVcol1] = -1;
            HouseInfo[all][hVcol2] = -1;
            strmid(HouseInfo[all][hOwner], "GOD", 0, strlen("GOD"), 255);
            format(string, sizeof(string), "~w~You have sold all propertys");
            GameTextForPlayer(playerid, string, 10000, 3);
            OnPropUpdate();
            }
            return 1;
        }
        else
        {
            SendClientMessage(playerid, COLOR_GRAD1, "  you are not authorized to use that command!");
        }
        return 1;
    }
log onto RCON and typ /sellallhouses and vфila
Reply


Messages In This Thread
[HELP]PENLS Help :/ - by FrazZ - 03.03.2009, 18:39
Re: [HELP]PENLS Help :/ - by [M2S]moe - 03.03.2009, 18:40
Re: [HELP]PENLS Help :/ - by FrazZ - 03.03.2009, 18:43
Re: [HELP]PENLS Help :/ - by Think - 03.03.2009, 19:09
Re: [HELP]PENLS Help :/ - by FrazZ - 03.03.2009, 20:09
Re: [HELP]PENLS Help :/ - by [M2S]moe - 03.03.2009, 20:17
Re: [HELP]PENLS Help :/ - by FrazZ - 03.03.2009, 20:18

Forum Jump:


Users browsing this thread: 1 Guest(s)