Jump to content

BuNiCu-RP

Membru
  • Posts

    160
  • Joined

  • Last visited

  • Days Won

    5

Community Answers

  1. BuNiCu-RP's post in Jucatori afisati was marked as the answer   
    new name[MAX_PLAYERS], string[128], stringx[128], players[MAX_PLAYERS], count; foreach(new i : Player) { if(IsPlayerConnected(i)) { if(IsBot[i] == 0) { if(PlayerInfo[i][pSleeping] == 0) { if(IsPlayerAFK[i] >= 1680) { SS(i, COLOR_LIGHTRED, "Daca nu te misti vei primi kick in 2 minute.", "If you don't move you will be kicked in 2 minutes."); } if(IsPlayerAFK[i] >= 1800) { count ++; SS(i, COLOR_WHITE, "Ai primit kick pentru ca ai fost AFK mai mult de 30 de minute.", "You were kicked for being AFK (away from keyboard) for more than 30 minutes."); SS(i, COLOR_WHITE, "Pentru a-ti lasa caracterul AFK mai mult de 30 de minute, foloseste /sleep intr-o casa.", "To leave your character AFK for longer than 30 minutes, use /sleep in a house."); SendClientMessage(i, COLOR_GENANNOUNCE, "You have been kicked for being AFK."); GetPlayerName(i, name, sizeof(name)); if(count > 0) { format(players, sizeof(players), "%s, ", name); strcat(stringx, players); } new var100[300]; mysql_format(SQL, var100, sizeof(var100), "INSERT INTO kicklogs (`playerid`,`giverid`,`playername`,`givername`,`reason`) VALUES ('%d','3','%s','AdmBot','AFK for more than 30 minutes')", PlayerInfo[i][pSQLID],PlayerInfo[i][pNormalName]); mysql_tquery(SQL,var100,"",""); KickEx(i); } } } } } if(count > 0) { format(string, sizeof(string), "%s was kicked by AdmBot for being AFK for more than 30 minutes.", stringx); strdel(string, strlen(stringx)-2, strlen(stringx)-1); SendClientMessageToAll(COLOR_LIGHTRED, string); } else { format(string, sizeof(string), "%s was kicked by AdmBot for being AFK for more than 30 minutes.", name); SendClientMessageToAll(COLOR_LIGHTRED, string); } asta ar trebui sa rezolve problema ta.
     
  2. BuNiCu-RP's post in checkpoint was marked as the answer   
    forward SetRaceCheckpointAll(); public SetRaceCheckpointAll() { for (new i = 0, j = GetPlayerPoolSize(); i <= j; i++) { if(stunton[i] == 1) { // Cei care sunt la event vor primi toti acelasi CP. new randoms = random(sizeof(stuntnrg)); SetPlayerCheckpoint(i, stuntnrg[randoms][0], stuntnrg[randoms][1], stuntnrg[randoms][2], 1.0); SetPlayerMapIcon(i, 53, stuntnrg[randoms][0], stuntnrg[randoms][1], stuntnrg[randoms][2], 53, MAPICON_GLOBAL_CHECKPOINT); pickup_event = CreatePickup(1274, 2, stuntnrg[randoms][0], stuntnrg[randoms][1], stuntnrg[randoms][2], GetPlayerVirtualWorld(i)); } } // Asta anunta tot serverul acel mesaj SendClientMessageToAll(-1, "A new stunting event has just started. It has been marked on your Map with a Black&White Race Flag Get there first and you'II win."); return 1; } Un mic exemplu
  3. BuNiCu-RP's post in teleport hack was marked as the answer   
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 522) return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu esti intr-un NRG-500 ."); if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 522) { if(stunton[playerid] == 1) { new playername[25]; new string[MAX_STRING]; GetPlayerName(playerid, playername, sizeof(playername)); new randmoney = 3500 + random(90000); //DisablePlayerCheckpoint(playerid); stunton[playerid] = 0; RemovePlayerMapIcon(playerid, 1274); DestroyPickup(pickup_event); format(string,sizeof(string),"{CF165D}%s A castigat STUNT-ul, acesta a castigat %d$.", playername, randmoney); SendClientMessageToAll( -1, string); GivePlayerCash(playerid, randmoney); Update(playerid, pCashx); DisablePlayerCheckpoint(playerid); SendClientMessage(playerid, -1, "Un nou stunt incepe la 30 minute."); SendClientMessage(playerid, -1, "STUNT-ul este in perioada de probe Nu este finalizat."); SendClientMessage(playerid, -1, "Ai gasit-o pe Elodia!"); } }  
  4. BuNiCu-RP's post in modificare sql was marked as the answer   
    public LoadTurfs() { static rows, fields, index; cache_get_data(rows, fields, g_iHandle); for (new i = 0; i < rows; i ++) { index = cache_get_field_int(i, "ID"); TurfInfo[index][zID] = index; TurfInfo[index][zOwned] = cache_get_field_int(i, "Owned"); TurfInfo[index][zTime] = cache_get_field_int(i, "Time"); TurfInfo[index][zMinX] = cache_get_field_float(i, "MinX"); TurfInfo[index][zMinY] = cache_get_field_float(i, "MinY"); TurfInfo[index][zMaxX] = cache_get_field_float(i, "MaxX"); TurfInfo[index][zMaxY] = cache_get_field_float(i, "MaxY"); } printf("[MySQL Turfs]: %d", rows); return 1; }  
  5. BuNiCu-RP's post in Eroare la MySQLConnect was marked as the answer   
    Deja nu mai are treaba cu stocul MySQLConnect, problema este din gm, este cu totul alta treaba !
×
×
  • 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.