Jump to content

All Activity

This stream auto-updates

  1. Today
  2. Tefyuu

    Masina

    Cauti in gamemode cmd:bonus sau cum ai tu comanda dar in general e cmd:bonus , si dupa adaugi GiveVehicle(playerid, 541, 0, 0, 0, 0, 0); , 541- este id- ul masini ca sa intelegi iti las un exemplu YCMD:bonus(playerid, params[], help) { if(PlayerInfo[playerid][pLevel] > 1) return true; SetPlayerScore(playerid, 5); PlayerInfo[playerid][pLevel] = 5; UpdateVar(playerid, "Level", 5); PlayerInfo[playerid][pVoucher][2] += 2; save_vouchers(playerid); GivePlayerCash(playerid, 1, 200000000); GiveVehicle(playerid, 541, 0, 0, 0, 0, 0); SCM(playerid, COLOR_GOLD, "Server Bonus: {FFFFFF}Ai primit $200,000,000 si 2 Vouchere Legendary, level 5, Bullet."); return true; Si vezi acolo givevehicle ca sa intelegi , daca nu ai inteles dami pm pe discord Manevra-aka-paispe#3507
  3. Si radio house , multumesc
  4. Salut , in gamemode ul burned by waller , cum adaug pet in shop ? am incercat eu ceva dar nu a aparut si am zis sa va intreb
  5. YCMD:command(playerid, params[], help) { if(help) { SendClientMessage(playerid, 0xFF0000AA, "Write a short help message here."); } else { // Code for command } return 1; }
  6. Salutare! Cum pot face o comanda CMD sa fie pe YCMD ? CMD:admins(playerid, params[]) { if(GPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_WHITE, "You need to login first."); if(IsPlayerConnected(playerid)) { new string[200],sendername[30]; SendClientMessage(playerid, COLOR_WHITE, "{408080}-----Admins Online------------------------"); foreach(Player,i) { if(IsPlayerConnected(i)) { if(PlayerInfo[pAdmin] == 1) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256, "{EEEEEE} (%d) %s - Moderator", i, sendername); SendClientMessage(playerid, -1, string); } if(PlayerInfo[pAdmin] == 2) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256, "{EEEEEE} (%d) %s - Junior Admin", i, sendername); SendClientMessage(playerid, -1, string); } if(PlayerInfo[pAdmin] == 3) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256, "{EEEEEE} (%d) %s - General Admin", i, sendername); SendClientMessage(playerid, -1, string); } if(PlayerInfo[pAdmin] == 4) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256, "{EEEEEE} (%d) %s - Senior Admin", i, sendername); SendClientMessage(playerid, -1, string); } if(PlayerInfo[pAdmin] == 5) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256, "{EEEEEE} (%d) %s - Supervizor", i, sendername); SendClientMessage(playerid, -1, string); } if(PlayerInfo[pAdmin] == 6) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256, "{EEEEEE} (%d) %s - Detinator", i, sendername); SendClientMessage(playerid, -1, string); } } } SendClientMessage(playerid, COLOR_WHITE, "{408080}--------------------------------------------"); SendClientMessage(playerid, COLOR_WHITE, "Daca ai vreo problema, poti folosi /report. Pentru intrebari legate de joc poti folosi /n."); SendClientMessage(playerid, COLOR_WHITE, "{408080}--------------------------------------------"); } return 1; }
  7. Uite aici un tutorial.
  8. Baga in db la users, "Reward"
  9. Salut ! Aveam deja zcmd am pus comanda la final de gm si a mers +1
  10. CMD:aduty(playerid, params[]) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED, "Eroare: Nu esti un Administrator."); if(sscanf(params, "s[10]", params)) return SendClientMessage(playerid, -1,"Syntax: /aduty <on/off>"); switch(params[0]+params[1]+params[2]) { case 'o'+'f'+'f': { ResetPlayerWeapons(playerid); SetPlayerArmour(playerid, 0); SetPlayerHealth(playerid, 100); SetPlayerSkin(playerid, 25); SendClientMessageToAll(COLOR_RED, "((AdmBot: Unul dintre administratori este acum off duty.))"); } case 'o'+'n': { GivePlayerWeapon(playerid, 38, 9999); SetPlayerArmour(playerid, 9999999); SetPlayerHealth(playerid, 9999999); SetPlayerSkin(playerid, 217); SendClientMessageToAll(COLOR_GREEN, "((AdmBot: Unul dintre administratori este acum on duty.))"); } default: SendClientMessage(playerid, -1,"Syntax: /aduty <on/off>"); } return 1; } pk
  11. Yesterday
  12. @R4zvyy Schimba linia 35 cu asta: hook OnPlayerConnect(playerid) return RemoveBuildingForPlayer(playerid, 1226, 1808.1250, -1859.5391, 16.3516, 0.25); //stalp spawn
  13. ../gamemodes/systems/mapping.inc(35) : warning 213: tag mismatch: expected tag none ("_"), but found "Float" ../gamemodes/systems/mapping.inc(35) : warning 202: number of arguments does not match definition Pawn compiler 3.10.8 Copyright (c) 1997-2006, ITB CompuPhase 2 Warnings.
  14. @R4zvyy Poftim, https://pastebin.com/3Pe1KE1E
  15. Codul nu este aranjat corect. Incearca sa copiezi de aici comanda. https://pastebin.com/u15NmvKg
  16. Nu sunt erori, sunt doar avertismente si iti semnaleaza faptul ca acele lini nu sunt "aranjate" cu restul linilor din jurul lor si cu contextul in care se afla. Din pacate e destul de greu de spus cum sa le aranjezi pentru ca formatarea textului fara a folosi functionalitatea de 'code' oferita de platofrma forumului e putin dificila. CMD:aduty(playerid, params[]) { if(IsPlayerAdmin(playerid)) { new type[25]; if(sscanf(params, "s[25]", type)) return SendClientMessage(playerid, -1,"Syntax: /aduty <on/off>"); if(strcmp(type, "off", true) == 0) { ResetPlayerWeapons(playerid); SetPlayerArmour(playerid, 0); SetPlayerHealth(playerid, 100); SetPlayerSkin(playerid, 25); SendClientMessageToAll(COLOR_RED, "((AdmBot: Unul dintre administratori este acum off duty.))"); } else if(strcmp(type, "on", true) == 0) { GivePlayerWeapon(playerid, 38, 9999); SetPlayerArmour(playerid, 9999999); SetPlayerHealth(playerid, 9999999); SetPlayerSkin(playerid, 217); SendClientMessageToAll(COLOR_GREEN, "((AdmBot: Unul dintre administratori este acum on duty.))"); } } else { SendClientMessage(playerid, COLOR_RED, "Eroare: Nu esti un Administrator."); } return 1; }
  17. CMD:aduty(playerid, params[]) { if(IsPlayerAdmin(playerid)) { new type[25]; 28971 : if(sscanf(params, "s[25]", type)) return SendClientMessage(playerid, -1,"Syntax: /aduty <on/off>"); if(strcmp(type, "off", true) == 0) { ResetPlayerWeapons(playerid); 28979: SetPlayerArmour(playerid, 0); SetPlayerHealth(playerid, 100); SetPlayerSkin(playerid, 25); 28985: SendClientMessageToAll(COLOR_RED, "((AdmBot: Unul dintre administratori este acum off duty.))"); } else if(strcmp(type, "on", true) == 0) { GivePlayerWeapon(playerid, 38, 9999); SetPlayerArmour(playerid, 9999999); SetPlayerHealth(playerid, 9999999); SetPlayerSkin(playerid, 217); 29001: SendClientMessageToAll(COLOR_GREEN, "((AdmBot: Unul dintre administratori este acum on duty.))"); } } else { SendClientMessage(playerid, COLOR_RED, "Eroare: Nu esti un Administrator."); } return 1; } in aceasta comanda primesc erorile astea C:\Users\tefyuu\Desktop\burned.ro\gamemodes\wa-rpg.pwn(28971) : warning 217: loose indentation C:\Users\tefyuu\Desktop\burned.ro\gamemodes\wa-rpg.pwn(28979) : warning 217: loose indentation C:\Users\tefyuu\Desktop\burned.ro\gamemodes\wa-rpg.pwn(28985) : warning 217: loose indentation C:\Users\tefyuu\Desktop\burned.ro\gamemodes\wa-rpg.pwn(29001) : warning 217: loose indentation
  18. In baza de date nu exista coloana 'Reward' in tabelul 'users'.
  1. Load more activity


×
×
  • 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.