{"action":"opened","issue":{"url":"https://api.github.com/repos/kurta999/YSF/issues/12","labels_url":"https://api.github.com/repos/kurta999/YSF/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/kurta999/YSF/issues/12/comments","events_url":"https://api.github.com/repos/kurta999/YSF/issues/12/events","html_url":"https://github.com/kurta999/YSF/issues/12","id":56950884,"number":12,"title":"SendFormatMessage(ToAll)","user":{"login":"TheVektor","id":10908255,"avatar_url":"https://avatars.githubusercontent.com/u/10908255?v=3","gravatar_id":"","url":"https://api.github.com/users/TheVektor","html_url":"https://github.com/TheVektor","followers_url":"https://api.github.com/users/TheVektor/followers","following_url":"https://api.github.com/users/TheVektor/following{/other_user}","gists_url":"https://api.github.com/users/TheVektor/gists{/gist_id}","starred_url":"https://api.github.com/users/TheVektor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheVektor/subscriptions","organizations_url":"https://api.github.com/users/TheVektor/orgs","repos_url":"https://api.github.com/users/TheVektor/repos","events_url":"https://api.github.com/users/TheVektor/events{/privacy}","received_events_url":"https://api.github.com/users/TheVektor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-08T13:04:44Z","updated_at":"2015-02-08T13:04:44Z","closed_at":null,"body":"native SendFormatMessage(playerid, color, const message[], {Float,_}:...);\r\nnative SendFormatMessageToAll(color, const message[], {Float,_}:...);\r\n\r\nI think its very useful in this plugin, and comfortable with using RPC.\r\n\r\nRakSamp-ból másoltam, szerintem ez az :d\r\nvoid SendClientMessage(PLAYERID playerID, DWORD dwColor, char* szMessage, ...)\r\n{\r\n\tva_list va;\r\n\tva_start(va, szMessage);\r\n\tchar szBuffer[512] = { 0 };\r\n\tvsprintf(szBuffer, szMessage, va);\r\n\tva_end(va);\r\n\r\n\tRakNet::BitStream bsParams;\r\n\tDWORD dwStrLen = strlen(szBuffer);\r\n\r\n\tbsParams.Write(dwColor);\r\n\tbsParams.Write(dwStrLen);\r\n\tbsParams.Write(szBuffer, dwStrLen);\r\n\tpRakServer->RPC(&RPC_ClientMessage, &bsParams, HIGH_PRIORITY, RELIABLE,\r\n\t\t0, pRakServer->GetPlayerIDFromIndex(playerID), FALSE, FALSE, UNASSIGNED_NETWORK_ID, NULL);\r\n}\r\n"}}