Jump to content

MiritaXD

Membru
  • Posts

    186
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by MiritaXD

  1. Versiunea streamer-ului nu e aceaiasi cu ce de compilare, nu cred ca e problema acolo
  2. uite aici o comanda CMD:test(playerid, params[]) { if(PlayerInfo[playerid][pLeader] == 0) return SCM(playerid, -1, "Nu esti lider de factiune!"); switch(DynamicFactions[PlayerInfo[playerid][pLeader]][fApplication]) { case 0: SCM(playerid, -1, "Aplicatii deschise!"), DynamicFactions[PlayerInfo[playerid][pLeader]][fApplication] = 1; case 1: SCM(playerid, -1, "Aplicatii inchise!"), DynamicFactions[PlayerInfo[playerid][pLeader]][fApplication] = 0; } return 1; }
  3. CMD:activatebonus(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa fi logat prima data!."); if(PlayerInfo[playerid][pAdmin] < 6) return SendClientMessage(playerid, COLOR_ERROR, AdminOnly); switch(BonusActiv){ case 0: BonusActiv = 1; SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai activat comanda /bonus!"); case 1: BonusActiv = 0; SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai dezactivat comanda /bonus!"); } return 1; } CMD:bonus(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa fi logat prima data!."); if(BonusActiv == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Aceasta comanda este dezactivata"); if(PlayerInfo[playerid][pLevel] > 3) return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu poti folosi aceasta comanda deoarece level-ul tau este prea mare!"); GivePlayerCash(playerid, 10000000); PlayerInfo[playerid][pPremiumPoints] += 30; PlayerInfo[playerid][pLevel] += 3; PlayerInfo[playerid][pExp] += 10; PlayerInfo[playerid][pRob] += 30; Update(playerid, pLevelx); Update(playerid, pCashx); Update(playerid, pPremiumPointsx); Update(playerid,pRP); Update(playerid,pRob); SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]); ShowPlayerDialog(playerid, 3354, DIALOG_STYLE_MSGBOX, "{F0965D}Server Bonus {4E24C9}| {F0965D}Nume Server{4E24C9} |", "{F0965D}Ai folosit comanda {F0965D}/bonus{F0965D} si ai primit:\n {00FFFF}-{ffffff} Level {00FFFF}3\n -{ffffff} 10.000.000{33cc33}$\n {00FFFF}-{ffffff} 30 Premium {ffff00}Points\n {00FFFF}-{ffffff} 10 Respect {ffff00}Points\n {00FFFF}-{ffffff}30 Rob {ffff00}Points","{8444F2}Multumesc",""); return 1; } Putin mai k
  4. Ceva mai simplu #define SCMM(%0,%1,%2,%3) format(gString, sizeof(gString),%2,%3) && SCM(%0, %1, gString) CMD:blablabla(playerid,parmams[]){ SCMM(playerid, -1 ,"Bulagiu: %s", GetName(playerid)); return 1; }
  5. Incearca cu "new housess = 0;" la inceputu gm ului
  6. Când ajung acasă îți las pm cu toată functia
  7. Trece text ul de la garaje pe string-ul de la case.PropertyString sau cum era
  8. Este in gm ul galaxy-arena
  9. Este o problema la respawnpveh sau ceva de geunu(functia care da respawn). La slotu 6 e pPluscarkey si trebuie pus pPluscarkey2
  10. function DespawnVehicle(carid) { if(IsVehicleOccupied(carid)) return SendClientMessage(playerid, COLOR_LGREEN, "vehiculul tau este ocupat!"); new dbid = FindSpawnID(carid); if(CarInfo[dbid][Spawned] != 0) DestroyPlayerCar(dbid); printf("Vehicle %d despawned. [db: %d]", carid, dbid); return 1; }
  11. MiritaXD

    Problema

    Este o verificare pusa de era(cred) sa nu il deschida toti ex: if(GetPName(playerid) == GetPName(playerid)) kick(playerid);
  12. La OnGameModeInit adaugi: AddStaticVehicle(IDmasina, Cordonate X,Cordonate Y, Cordonate Z, Rotatia, Culoare1, Culoare 2);
  13. Instaleaza net framework si visual c++
  14. if(PlayerInfo[i][pAdmin] < 1) { for(new i = 0; i < 50; i++) SendClientMessageToAll(COLOR_WHITE," "); } Daca jucator-ul "i" are admin mai mic de 1 ii sterge chat-ul. Deci admini nu primesc clear.
  15. SQL = mysql_connect("IP", "USER", "DB", "PAROLA.");
  16. Nu ai asa ceva, sau poate ai sters tu acea functie
  17. @andreyctn CMD:vipname(playerid, params[]) { if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER && GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SCM(playerid, COLOR_WHITE, "Nu esti intr-un vehicul."); new vehicleid = GetPlayerVehicleID(playerid); if(!IsPlayerConnected(playerid)) return SCM(playerid, COLOR_WHITE, "Nu esti conectat"); if(PlayerInfo[IsAnOwnableCar(vehicleid)][pUpgrade] == 0) return SCM(playerid, COLOR_WHITE, "Poti folosi aceasta comanda doar pe vehicule VIP."); new query[256],text[20],test[20]; if(sscanf(params, "s[20]", text)) return SCM(playerid, COLOR_WHITE, "{FF0000}Usage: {FFFFFF}/vipname [Text]"); if(strlen(text) < 1 || text(text) > 20) return SCM(playerid, COLOR_GREY, "Minim 1 caracte maxim 20"); SetVipText(playerid, vehicleid); mysql_real_escape_string(text, test); mysql_format(SQL, query, sizeof(query), "UPDATE `cars` SET `Vip`='%s' WHERE `ID`='%d'", test, CarInfo[IsAnOwnableCar(vehicleid)]); mysql_tquery(SQL, query, "", ""); format(query, sizeof(query), "Text pentru vehicul setat: %s", text); SendClientMessage(playerid, COLOR_ADMCOMMANDS, query); return 1; }
  18. Incerca asa CMD:vipname(playerid, params[]) { if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER && GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SCM(playerid, COLOR_WHITE, "Nu esti intr-un vehicul."); new vehicleid = GetPlayerVehicleID(playerid); if(!IsPlayerConnected(playerid)) return SCM(playerid, COLOR_WHITE, "Nu esti conectat"); if(PlayerInfo[IsAnOwnableCar(vehicleid)][pUpgrade] == 0) return SCM(playerid, COLOR_WHITE, "Poti folosi aceasta comanda doar pe vehicule VIP."); new query[256],text[20],test[20]; if(sscanf(params, "s[20]", text)) return SCM(playerid, COLOR_WHITE, "{FF0000}Usage: {FFFFFF}/vipname [Text]"); if(strlen(text) < 1 || text(title) > 20) return SCM(playerid, COLOR_GREY, "Minim 1 caracte maxim 20"); SetVipText(playerid, vehicleid); mysql_real_escape_string(text, test); mysql_format(SQL, query, sizeof(query), "UPDATE `cars` SET `Vip`='%s' WHERE `ID`='%d'", test, CarInfo[IsAnOwnableCar(vehicleid)]); mysql_tquery(SQL, query, "", ""); format(query, sizeof(query), "Text pentru vehicul setat: %s", text); SendClientMessage(playerid, COLOR_ADMCOMMANDS, query); return 1; }
  19. Incearca asa CMD:ccfp(playerid, params[]) { new range, carid, Float:rPos[4], x, string[180]; if(sscanf(params, "ii", carid, range)) return SendClientMessage(playerid, -1, "USAGE: {FFFFFF}/ccfp <carid> <range>"); if(carid < 400 || carid > 611) return SendClientMessage(playerid, -1, "Invalid car [400-611]"); GetPlayerPos(playerid, rPos[0], rPos[1], rPos[2]); foreach(Player,i) { if(IsPlayerInRangeOfPoint(i, range, rPos[0], rPos[1], rPos[2])) { GetPlayerPos(i,rPos[0], rPos[1], rPos[2]); CreateVehicle(carid,rPos[0], rPos[1], rPos[2],0.0,-1,-1,0,0); x++; } } format(string, sizeof(string), "AdmCmd: %s a dat o masina %d la %d jucatori pe o raza de %dm.", GetName(playerid),carid, x, range); SendClientMessage(playerid, -1, string); return 1; }
  20. Daca sar de la o anumita distanta(mica) imi scade tot HP-ul.
  21. Normal ca nu se salvează... trebuie sa ii dai export dupa ce adaugi acel tabel
×
×
  • 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.