COmmands
#4

i don't know add char, because i dont know variable player if have house / not

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;
}
+rep please if help you
Reply


Messages In This Thread
COmmands - by ALoX12 - 14.07.2015, 18:13
Re: COmmands - by kloning1 - 14.07.2015, 18:16
Re: COmmands - by ALoX12 - 14.07.2015, 18:20
Re: COmmands - by kloning1 - 14.07.2015, 18:27
Re: COmmands - by ALoX12 - 14.07.2015, 18:37
Re: COmmands - by ALoX12 - 14.07.2015, 21:18

Forum Jump:


Users browsing this thread: 1 Guest(s)