04.05.2012, 14:48
OK
I do Command
If player do command /join this work
but if he is do the command again its write him : You need wait 5 second
and this is work too
bbut but but but but the timer work to all player
Example :
Player one : /a j || You join to the activity !!!!
Player two: /a j || You use the command , wait second and try again
Why ?
I do Command
PHP код:
if(strcmp(tmp, "Join", true) == 0 || strcmp(tmp, "j", true) == 0)
{
if(activity == 0) return SendClientMessage(playerid,White,"айп фтймеъ оефтмъ");
if(ActivityTeleports == 0) return SendClientMessage(playerid,White,"дазшай свш аъ дщйвешйн мфтймеъ емлп аъд ма йлем мдцишу");
if(JoinTime2[playerid] == 1) return SendClientMessage(playerid,White,"лбш бйчщъ мдцишу мфтймеъ , злд гчд ебчщ щеб");
format(string1, sizeof(string1),"обчщ мдцишу мфтймеъ %s[%d] дщзчп",GetName(playerid),playerid);
SendAdminsMessage(0x8e0c9ff,string1);
SendClientMessage(playerid,0x8e0c9ff,"бйчщъ мдцишу мфтймеъ , злд щдазшай йцшу аеък");
GameTextForPlayer(playerid,"~r~Activity ~b~ Join !~<~",20,1);
JoinTime[playerid] = SetTimerEx("JoinTime1", 60000, 0, "i", playerid);
for(new i = 0; i<MAX_PLAYERS; i++) if(IsPlayerConnected(i)) JoinTime2[i] = 1;
return 1;
}
PHP код:
public JoinTime1(playerid)
{
SendClientMessage(playerid,0x48c14ff,"аъд йлем мбчщ мдцишу мфтймеъ щеб");
JoinTime2[playerid] = 0;
return 1;
}
but if he is do the command again its write him : You need wait 5 second
and this is work too
bbut but but but but the timer work to all player
Example :
Player one : /a j || You join to the activity !!!!
Player two: /a j || You use the command , wait second and try again
Why ?