Jump to content

Question

Posted

Salut, imi poate spune si mie cineva cum pot midifica sa nu poti da odata la o ora getgift,unde sa modific

CMD:getgift(playerid, params[])
{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
    if(IsPlayerConnected(playerid))
     {
         if(GiftBoxActiv > 0)
         {
             if(PlayerInfo[playerid][pConnectTime] <= 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need 1 hours to use /getgift.");
             if(PlayerInfo[playerid][pGiftTime] > 0)
             {
                 new string[128];
                 format(string,sizeof(string),"Mai poti folosi aceasta comanda peste %d ore.",PlayerInfo[playerid][pGiftTime]);
                 SendClientMessage(playerid, COLOR_YELLOW, string);
                 return 1;
            }
 

4 answers to this question

Recommended Posts

  • 0
Posted (edited)

Cauta pGiftTime in gamemode si posteaza tot ce este legat de el. 

ceva de genul daca gasesti:

 

PlayerInfo[playerid][pGiftTime] = x;

Edited by JustRed
  • 0
Posted

Nu am inteles intrebarea, daca este legat sa ai o ora pe server atunci aici:

  if(PlayerInfo[playerid][pConnectTime] <= 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need 1 hours to use /getgift."); 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.