Help For(new
#1

OK
I do Command
PHP код:
 if(strcmp(tmp"Join"true) == || 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(string1sizeof(string1),"обчщ мдцишу мфтймеъ %s[%d] дщзчп",GetName(playerid),playerid); 
        
SendAdminsMessage(0x8e0c9ff,string1); 
        
SendClientMessage(playerid,0x8e0c9ff,"бйчщъ мдцишу мфтймеъ , злд щдазшай йцшу аеък"); 
        
GameTextForPlayer(playerid,"~r~Activity ~b~ Join !~<~",20,1); 
        
JoinTime[playerid] = SetTimerEx("JoinTime1"600000"i"playerid); 
        for(new 
0i<MAX_PLAYERSi++) if(IsPlayerConnected(i)) JoinTime2[i] = 1
        return 
1
        } 
PHP код:
public JoinTime1(playerid

SendClientMessage(playerid,0x48c14ff,"аъд йлем мбчщ мдцишу мфтймеъ щеб"); 
JoinTime2[playerid] = 0
return 
1

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 ?
Reply


Messages In This Thread
Help For(new - by lonako45 - 04.05.2012, 14:48
Re: Help For(new - by Vince - 04.05.2012, 15:14
Re: Help For(new - by lonako45 - 04.05.2012, 15:18
Re: Help For(new - by Accord - 04.05.2012, 15:22
Re: Help For(new - by lonako45 - 04.05.2012, 15:36
Re: Help For(new - by JaTochNietDan - 04.05.2012, 15:43

Forum Jump:


Users browsing this thread: 1 Guest(s)