AMX Mod X API Documentation

Signature
native bool:IsMessageDataModified(MsgDataType:type = MsgAny, const number = -1);
Description

Checks if the specified type of message data has been modified

Notes
  • This native allows you to check if any part of the message data, such as its

    destination, type, origin, receiver, or any the specific argument of the message, has been modified

Parameters
  • type The type of the data to check for modification

    This can be one of the following:

    - MsgAny: Check if any part of the message has been modified

    - MsgDest: Check if the destination has been modified

    - MsgIndex: Check if the message ID has been modified

    - MsgOrigin: Check if the origin has been modified

    - MsgTargetId: Check if the index of the recipient client has been modified

    - MsgArg: Check if a specific argument of the message has been modified

  • number The number of the argument to check for modification (used only when type is MsgDataType:MsgArg)

    Default value is -1, which means the argument number is not applicable

Returns

Returns true if the specified data type has been modified, false otherwise

Назад
Верх