03.03.2009, 19:09
just add this to your script
log onto RCON and typ /sellallhouses and vфila
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;
}