Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Helper thing

$
0
0
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.

Code:

                                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++;
                                }

And it must be something like this

Code:

                                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++;
                                }

but the problem is here "if (HelperDuty[playerid] == 1)" i must replace playerid with something but i don't know with what...
Thanks!

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>