- 0
Problema /count
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
d@rK
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