20.12.2017, 17:09
Hello every one, i know that my english isn't that good but i wanna ask you about a thing.
i have a command on my server when i wright "/helpers", it will show me the helpers that are connected on the server.
But i wanna make something new and if the Helper is duty it must show with Green Color so here it is the code and what must be, who can help me i will kiss him xD.
And it must be something like this
but the problem is here "if (HelperDuty[playerid] == 1)" i must replace playerid with something but i don't know with what...
Thanks!
i have a command on my server when i wright "/helpers", it will show me the helpers that are connected on the server.
But i wanna make something new and if the Helper is duty it must show with Green Color so here it is the code and what must be, who can help me i will kiss him xD.
Код:
if(PlayerInfo[i][pHelper] == 1) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256, "{FF6347}%s {FFFFFF}(%d) - Helper Nivel 1", sendername,i); SendClientMessage(playerid, COLOR_WHITE, string); count++; }
Код:
if(PlayerInfo[i][pHelper] == 1) { GetPlayerName(i, sendername, sizeof(sendername)); if (HelperDuty[playerid] == 1) format(string, 256, "{009900}%s {FFFFFF}(%d) - Helper Nivel 1", sendername,i); else format(string, 256, "{FF6347}%s {FFFFFF}(%d) - Helper Nivel 1", sendername,i); SendClientMessage(playerid, COLOR_WHITE, string); count++; }
Thanks!