Guten Tag Brotfische,
Ich habe ebend /asellhouse ausprobiert, natürlich habe ich vorher auch /edit price 1 gemacht um die Hause ID herauszufinden.
Der Befehl
if(strcmp(cmd, "/asellhouse", true) == 0)
{
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, playername, sizeof(playername));
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "NUTZUNG: /asellhouse [houseid]");
return 1;
}
new house = strval(tmp);
if (PlayerInfo[playerid][pAdmin] >= 4)
{
HouseInfo[house][hHel] = 0;
HouseInfo[house][hArm] = 0;
HouseInfo[house][hHealthx] = 0;
HouseInfo[house][hHealthy] = 0;
HouseInfo[house][hHealthz] = 0;
HouseInfo[house][hArmourx] = 0;
HouseInfo[house][hArmoury] = 0;
HouseInfo[house][hArmourz] = 0;
HouseInfo[house][hLock] = 1;
HouseInfo[house][hOwned] = 0;
HouseInfo[house][hVec] = 418;
HouseInfo[house][hVcol1] = -1;
HouseInfo[house][hVcol2] = -1;
strmid(HouseInfo[house][hOwner], "The State", 0, strlen("The State"), 255);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "~w~Du hast dieses Geschaeft verkauft", HouseInfo[house][hValue]);
GameTextForPlayer(playerid, string, 10000, 3);
OnPropUpdate();
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "Du bist nicht befugt.");
}
}
return 1;
}
Bitte nur hilfreiche Anfragen [Keine Anfragen auf: Ist das ein Godfather usw.]