run text draw to all players
#1

Sorry for the inconvenience
but is that possible?

i have that thing
PHP код:
    GermanyPoints[playerid] ++; 
but i want to do that the command will run on all players
no [playerid] because i have text draw that shows the germany points
and it always upgrade when germany soldier kill russian soldier
i need that the textdraw will work on all germany killers (it will be common points)
PHP код:
if(gTeam[killerid] == Germany)
{
        if(
gTeam[playerid] == Russia)
        {
           
             new 
newtext[41];
             
GermanyPoints[playerid] ++;//here the problem 
             
TextDrawHideForAll(Textdraw6);
         
format(newtextsizeof(newtext), "Points:%d"GermanyPoints[playerid]);
             
TextDrawSetString(Textdraw6newtext);
             
TextDrawShowForAll(Textdraw6);   
            return 
1;
        }

Reply
#2

I am not sure but ain't it

Код:
new GermanyPoints[playerid] ++;
Reply
#3

Why do you hide the textdraw? setting the string means you don't need to reload it.
Reply
#4

ok tnx i didn't know that
Reply
#5

Not sure if I understood what you wanted but what try this, this is what I understood.

Delete the current new GermanyPoints[MAX_PLAYERS]; you have and change it out with this, then it wont use playerids as you asked for

new GermanyPoints;


GermanyPoints++;
format(newtext, sizeof(newtext), "Points:%d", GermanyPoints);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)