16.09.2015, 10:48
Код:
#define RPC_Widescreen (0x6F | 111)
CMD:rpc(playerid, params[])
{
new bool:toggle=!!strval(params);
SendRPC(playerid, RPC_Widescreen, BS_CHAR, toggle);
return 1;
}
Im not sure but i think that data (actually both functions) can accept arrays. Like:
Код:
new data[] = {
BS_BOOL,
BS_CHAR,
BS_FLOAT
};
new info[] = {
0,//false
'B',//Character B
2.5//Float
};
SendData(playerid, data, info);
EDIT: Or it may be SendData(playerid, data1, info1, data2, info2); => I think its actually these way, judging by the source (im not very good so again i may make big mistake :P)
And by the way, if you provide -1 for playerid it will send that packet to all players (Both RPC and Data functions)

