22.03.2013, 18:13
Yeah it is created.. I looked in my code there was some miss understanding with
Code:
error 021: symbol already defined: "cmd_removeattachedobjects"
Code:
error 021: symbol already defined: "cmd_removeattachedobjects"
pawn Код:
CMD:removeattachedobjects(playerid, params[]) return cmd_raos(playerid, params);
CMD:removeattachedobjects(playerid, params[])
{
if(GetPVarInt(playerid, "EditingAttachedObject") != 0 || GetPlayerState(playerid) == PLAYER_STATE_WASTED || GetPlayerState(playerid) == PLAYER_STATE_SPECTATING)
return SendClientMessage(playerid, COLOR_YELLOW, "* Sorry, you can't use this command right now!"), 1;
else if(!GetPlayerAttachedObjectsCount(playerid)) {
SendClientMessage(playerid, COLOR_YELLOW, "* Sorry, you don't have any attached object!");
GameTextForPlayer(playerid, "~r~~h~You have no attached object!", 5000, 3);
return 1;
}
else AOE_ShowPlayerDialog(playerid, 12, AOED_REMOVEALL, "Remove All Attached Object(s)", "Yes", "Cancel");
return 1;
}