24.12.2014, 00:03
Quote:
To some extent, yes - just send, for example, the bot's new skin to one player then they will see it differently to everyone else. Also, I thought there used to be a SendRawCommand(playerid, commandid, ...) or similar - did I just imagine that?
|
pawn Code:
enum
{
BS_BOOL,
BS_CHAR,
BS_UNSIGNEDCHAR,
BS_SHORT,
BS_UNSIGNEDSHORT,
BS_INT,
BS_UNSIGNEDINT,
BS_FLOAT,
BS_STRING
};
// FOR DEVELOPERS ONLY!!!!!!!!!!!!!!!!!!!!
native SendRPC(playerid, RPC, {Float,_}:...); // playerid == -1 -> broadcast
native SendData(playerid, {Float,_}:...); // playerid == -1 -> broadcast
CMD:bubble(playerid, params[]) // illustrate how SendRPC works. this is equal to SetPlayerChatBubbleForPlayer
{
SendRPC(playerid, 0x3B, // rpcid
BS_UNSIGNEDSHORT, strval(params), // at player, where you want to create bubble
BS_INT, 0x33FF33AA, // color
BS_FLOAT, 50.0, // drawdistance
BS_INT, 4325, // expiretime
BS_UNSIGNEDCHAR, 3, // string lenght
BS_STRING, "asd"); // string
return 1;
}