Jump to content
  • 0

Question

15 answers to this question

Recommended Posts

  • 0
Posted

CMD:stats(playerid, params[])
{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first.");
    if(SomatePermission[playerid] == 0) return SendClientMessage(playerid, COLOR_WHITE, "{FEC3AC}Asteapta 5 secunde.");
    if(PlayerInfo[playerid][pLevel] < 1) return SCM(playerid,COLOR_WHITE,"{FFB870}Command currently inaccessible.");
    PlayerInfo[playerid][pStatus] = 1;
    new qqerry[128];
    format(qqerry, sizeof(qqerry), "UPDATE `users` SET `Status` = '1' WHERE `name` = '%s'", GetPName(playerid));
    mysql_query(SQL,qqerry);
    ShowStats(playerid,playerid);
            timersoo[playerid] = SetTimerEx("SetSomate", 5000, 1, "i", playerid);
            somatee[playerid] = 0;
            SomatePermission[playerid] = 0;
    return 1;
}

  • 0
Posted

Salut, in gamemode mai ai o functie numita ShowStats(playerid,playerid) iar comanda /stats doar actioneaza ca acea functie sa apara, mai cauta in gamemode acea functie si posteazo te rog.

 

 

  • 0
Posted

ShowStats(playerid,playerid);
            timersoo[playerid] = SetTimerEx("SetSomate", 5000, 1, "i", playerid);
            somatee[playerid] = 0;
            SomatePermission[playerid] = 0;

  • 0
Posted

        format(coordsstring, sizeof(coordsstring), "IP: %s\n",playersip);
            strcat(string2,coordsstring);
        }
          ShowPlayerDialog( playerid, DIALOG_FACTIONS, DIALOG_STYLE_MSGBOX, "Stats List", string2, "Ok", "" );

Guest
This topic is now closed to further replies.
×
×
  • 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.