-
Notifications
You must be signed in to change notification settings - Fork 35
Closed
Description
native SendFormatMessage(playerid, color, const message[], {Float,}:...);
native SendFormatMessageToAll(color, const message[], {Float,}:...);
I think its very useful in this plugin, and comfortable with using RPC.
RakSamp-ból másoltam, szerintem ez az :d
void SendClientMessage(PLAYERID playerID, DWORD dwColor, char* szMessage, ...)
{
va_list va;
va_start(va, szMessage);
char szBuffer[512] = { 0 };
vsprintf(szBuffer, szMessage, va);
va_end(va);
RakNet::BitStream bsParams;
DWORD dwStrLen = strlen(szBuffer);
bsParams.Write(dwColor);
bsParams.Write(dwStrLen);
bsParams.Write(szBuffer, dwStrLen);
pRakServer->RPC(&RPC_ClientMessage, &bsParams, HIGH_PRIORITY, RELIABLE,
0, pRakServer->GetPlayerIDFromIndex(playerID), FALSE, FALSE, UNASSIGNED_NETWORK_ID, NULL);
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels