14.07.2015, 18:27
i don't know add char, because i dont know variable player if have house / not
+rep please if help you
pawn Код:
CMD:removehouse(playerid, params[])
{
new hid;
if(sscanf(params, "u", hid)) return SendClientMessage(playerid, -1, "/removehouse [id]");
if(dini_Exists(HouseFile(hid)))
{
foreach(Player, i)
{
if(IsPlayerInHouse[i][hid] == 1)
{
ExitPlayerFromHouse(i,hid);
}
}
Delete3DTextLabel(HouseInfo[hid][Text]);
DestroyDynamicCP(hCpOut[hid]);
IsValidDynamicCP(hCpIn[hid]);
dini_Remove(HouseFile(hid));
}
return 1;
}