[Ajuda] Gettime
#2

topo do gm :
pawn Code:
poderusarcmd[MAX_PLAYERS];
em onplayerconnect:
pawn Code:
poderroubar[playerid] = 1;
pawn Code:
if(strcmp(cmd, "/roubarcarro", true) == 0)
    {
   
        if(IsPlayerConnected(playerid))
        {
       
        if(poderusarcmd[playerid] == 1)
        {
        poderusarcmd[playerid] = 0;
         SetTimerEx("tempo", 20000, false, "i", playerid);
         return 1;
}
}
}
pawn Code:
public tempo(playerid)
{
    SendClientMessage(playerid,-1,"Vocк ja pode usar  o cmd !");
    poderusarcmd[playerid] = 1;
    return 1;
}
Adapte a suas necessidades.
Reply


Messages In This Thread
Gettime - by FabioGTP - 15.10.2014, 02:48
Re: Gettime - by Saidmrn - 15.10.2014, 03:04
Re: Gettime - by ProKillerpa - 15.10.2014, 03:36
Re: Gettime - by Saidmrn - 15.10.2014, 03:50
Re: Gettime - by ProKillerpa - 15.10.2014, 03:57
Re: Gettime - by DavidCosta - 15.10.2014, 05:16

Forum Jump:


Users browsing this thread: 1 Guest(s)