Jump to content

Question

Posted

Cand dau comanda /countdown apare: d@rK has started the count, dar problema este ca daca sunt langa 1 player apare de 2 ori in chat: d@rK has started the count, daca sunt langa 5 playeri apare de 5 ori: d@rK has started the count, as vrea sa apara doar 1 singura data :)

Multumesc.

Pawno:

[pawn]if(strcmp(cmdtext,"/count",true) == 0 || strcmp(cmdtext,"/countdown",true) == 0)

{

new pName[30];

if(Event[playerid] == 1)

{

  if (aaa == false)

{

  aaa = true;

  GetPlayerName(playerid, pName, 30);

  new Float:x, Float:y, Float:z;

  GetPlayerPos(playerid,x,y,z);

for(new i; i < MAX_PLAYERS; i++)

{

if(IsPlayerInRangeOfPoint(i,30.5,x,y,z))

{

    ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

    format(string,sizeof(string),"{FFD900}*** {2BD52B}%s {FFFFFF}has started the count !",pName);

    SendClientMessage(i,COLOR_WHITE,string);

TogglePlayerControllable(i,0);

SetTimer("unfreeze1",3000,0);

}

}

  SetTimer("count2",1000,0);

SetTimer("count1",2000,0);

  SetTimer("countgo",3000,0);

  SetTimer("stop",6000,0);

}

  else SendClientMessage(playerid, 0xFF9900AA, "It's already started!");

  return 1;

}

else SendClientMessage(playerid, COLOR_GRAD1, "Numaratoarea inversa se foloseste doar la {FFB300}Event !");

  }[/pawn]

3 answers to this question

Recommended Posts

Posted

Pune asa

[pawn]

format(string,sizeof(string),"{FFD900}*** {2BD52B}%s {FFFFFF}has started the count !",pName);

ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);[/pawn]

   

Si sterge SendClientMessage(i,COLOR_WHITE,string);

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.