-
Posts
69 -
Joined
-
Last visited
Contact Methods
-
Nick SA:MP Blue
-
Profile Information
-
Gender
Not Telling
Maffw's Achievements
Noob (1/14)
1
Reputation
-
Detalii: doresc și eu aripiile acelea de inger stiti la ce ma refer dar sa fie una stanga si una dreapta sa nu fie intr-o poza ambele aripioare Imagine: Aveti la rankuriile de forum!
-
Ok, chiar nah. nu-mi prea place gamemode-ul ..
-
Codrinel-ul este sponsorizat de BUGGED cumparati puncte premium pe bugged mai ieftine de cat pe bugged.
-
Incerc acum. Edit : intr-un fel merge dar imi ma de 2 ori acelasi mesaj..
-
Nici eu nu sunt expert in pawno, dar macar stiu cu ce sa mananca acest limbaj de programare .. ON: Vezi daca numele bazei de date este exact nu numele bazei de date creeata in phpmyadmin .
-
Cine te-a mintit ? cat ai uracat baza de date in phpmyadmin poti sa o si stergi .
-
Cum a zis si el mai sus Cauta linia : SQL = mysql_connect("localhost","root","database",""); Sa fie asa : localhost - pc-ul root - lasi asa database - pui numele de la baza de date "" - aici lasi gol, e parola Daca pui SQL = mysql_connect("localhost","root","","database"); Nu-ti mai merge.
-
CMD:spawncar(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi mai intai."); if(PlayerInfo[playerid][pAdmin] >= 6) { new model,sendername[25],string[256]; if(sscanf(params, "i", model)) return SCM(playerid,COLOR_GREY, "Sintaxa: {FFFFFF}/spawncar <Model>"); if(model < 400 || model > 611) return SCM(playerid,COLOR_YELLOW2, "Error: Invalid car ID."); new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid, X,Y,Z); new carid = AddStaticVehicle(model, X,Y,Z, 0.0, -1, -1); Carspawn[carid] = carid; GetPlayerName(playerid, sendername, sizeof(sendername)); new vehicles = GetVehicleModel(carid) - 400; format(string, sizeof(string), "AdmBot: Admin %s has spawned %s [Model ID:%d - Car ID: %d].",sendername,aVehicleNames[vehicles],model,carid); ABroadCast(COLOR_LOGS, string, 4); format(string,sizeof(string),"VehLog: %s has spawned car model %d.",sendername,model); Adminlog(string); LinkVehicleToInterior(carid, GetPlayerInterior(playerid)); } else return SendClientMessage(playerid, COLOR_WHITE, AdminOnly); return 1; } CMD:givegun(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi mai intai."); if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] >= 3) { new id,gun,ammo,string[100],sendername[30],giveplayer[30]; if(sscanf(params, "uii",id,gun,ammo)) { SCM(playerid,COLOR_GREY, "Sintaxa: {FFFFFF}/givegun <Nume/ID> <Weapon ID> <Ammo>"); SCM(playerid,COLOR_WHITE,"1-Brass Knuckles; 2-Golf Club; 3-Nightstick; 4-Knife; 5-Baseball Bat; 6-Shovel; 7-Pool Cue; 8-Katana;"); SCM(playerid,COLOR_WHITE,"9-Chainsaw; 10-Double-ended Dildo; 11-Dildo; 12-Vibrator; 13-Silver Vibrator; 14-Flowers; 15-Cane;"); SCM(playerid,COLOR_WHITE,"16-Grenade; 17-Tear Gas; 18-Molotov Cocktail; 22-9mm; 23-Silenced 9mm; 24-Desert Eagle; 25-Shotgun;"); SCM(playerid,COLOR_WHITE,"26-Sawnoff Shotgun; 27-Combat Shotgun; 28-Micro SMG/Uzi; 29-MP5; 30-AK-47; 31-M4; 32-Tec-9; 33-Country Rifle;"); SCM(playerid,COLOR_WHITE,"34-Sniper Rifle; 35-RPG; 36-HS Rocket; 37-Flamethrower; 38-Minigun; 39-Satchel Charge; 40-Detonator;"); SCM(playerid,COLOR_WHITE,"41-Spraycan; 42-Fire Extinguisher; 43-Camera; 44-Night Vis Goggles; 46-Parachute;"); return 1; } if(gun < 1||gun > 46||gun==19||gun==20||gun==21||gun==45) return SCM(playerid,COLOR_WHITE,"Invalid weapond ID."); if(ammo <1||ammo > 1000) return SCM(playerid,COLOR_WHITE,"Invalid ammo (1-1000)."); if(IsPlayerConnected(id)) { if(id != INVALID_PLAYER_ID) { GivePlayerWeaponEx(id, gun, ammo); GetPlayerName(id, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "AdmBot: Admin %s has given %s gun id %d.",sendername,giveplayer,gun); ABroadCast(COLOR_LOGS,string,3); if(GetPlayerState(id) == PLAYER_STATE_PASSENGER) { new gun2,tmp; GetPlayerWeaponData(id,5,gun2,tmp); #pragma unused tmp if(gun2)SetPlayerArmedWeapon(id,gun2); else SetPlayerArmedWeapon(id,0); } } } else return SendClientMessage(playerid, COLOR_YELLOW2, "Eroare: Acel player nu este conectat."); } else return SendClientMessage(playerid,COLOR_WHITE, AdminOnly); } return 1; } Le faci tu dupa gamemode-ul tau .
-
Ce sa editeze man ... "si cautati in jos pana gasiti asta: if(PlayerInfo[playerid][pColor] == 0) { format(szMessage, sizeof(szMessage), "{CECECE}%s:{FFFFFF} %s", szPlayerName, text); }" Eu nu am asta.. poate nimeni nu are asta ... Si se vede ca e copiat din GM, tu ai zis ca faci /acolor dar defat asta e /pcolor din gm s4urik si nu mai stiu eu ... Nu ai zis ca trebuie sa puna la PlayerInfo : aColor, sau cum e tot de aici : pColor, Astea le lasi sa le scrie noi.. new szMessage[1000]; new szPlayerName[32]; GetPlayerName(playerid, szPlayerName, 32); Si daca sunt nou, unde as pune astea, tu zici ca la OnPlayerText dar poate le am deja .. Daca ma uit mai bine poate gasesc si mai multe greseli, tu ai facut si pColor si aColor .. doar ca sunt gresite .
-
Uite tot public-ul .. http://pastebin.com/TB8teSnQ
-
Tot nu merge .. https://postimg.org/image/kueuivg4x/
-
Salutare bugged, am "furat" comanda /pcolor dintr-un gamemode si am incercat sa o implementez in alt-ul dar am niste probleme ... CMD:pcolor(playerid, params[]) { if(PlayerInfo[playerid][pPremiumAccount] == 1) { ShowPlayerDialog(playerid, DIALOG_PCOLOR, DIALOG_STYLE_LIST, "Premium colors:" , "{CECECE}White\n{0087FE}Blue{FFFFFF}\n{662BBE}Dark purple{FFFFFF}\n{FFE600}Yellow{FFFFFF}\n{FF00FF}Purple{FFFFFF}\n{3FFF3F}Green{FFFFFF}\n{83D553}Lime green{FFFFFF}\n{187700}Dark green{FFFFFF}\n{FF9A00}Orange{FFFFFF}\n{222222}Black{FFFFFF}\n{FF2C9D}Pink{FFFFFF}" , "Select" , "Cancel"); } else return SendClientMessage(playerid,COLOR_WHITE,"You are not a premium user."); return 1; } if(dialogid == DIALOG_PCOLOR) { if(response) { switch(listitem) { case 0: { PlayerInfo[playerid][pColor] = 0; SCM(playerid, COLOR_WHITE,"{CECECE}Server:{FFFFFF} Nick color changed! Hope you like the new color!"); } case 1: { PlayerInfo[playerid][pColor] = 1; SCM(playerid, COLOR_WHITE,"{4169E1}Server:{FFFFFF} Nick color changed! Hope you like the new color!"); } case 2: { PlayerInfo[playerid][pColor] = 2; SCM(playerid, COLOR_WHITE,"{662BBE}Server:{FFFFFF} Nick color changed! Hope you like the new color!"); } case 3: { PlayerInfo[playerid][pColor] = 3; SCM(playerid, COLOR_WHITE,"{FFE600}Server:{FFFFFF} Nick color changed! Hope you like the new color!"); } case 4: { PlayerInfo[playerid][pColor] = 4; SCM(playerid, COLOR_WHITE,"{FF00FF}Server:{FFFFFF} Nick color changed! Hope you like the new color!"); } case 5: { PlayerInfo[playerid][pColor] = 5; SCM(playerid, COLOR_WHITE,"{3FFF3F}Server:{FFFFFF} Nick color changed! Hope you like the new color!"); } case 6: { PlayerInfo[playerid][pColor] = 6; SCM(playerid, COLOR_WHITE,"{83D553}Server:{FFFFFF} Nick color changed! Hope you like the new color!"); } case 7: { PlayerInfo[playerid][pColor] = 7; SCM(playerid, COLOR_WHITE,"{187700}Server:{FFFFFF} Nick color changed! Hope you like the new color!"); } case 8: { PlayerInfo[playerid][pColor] = 8; SCM(playerid, COLOR_WHITE,"{FF9A00}Server:{FFFFFF} Nick color changed! Hope you like the new color!"); } case 9: { PlayerInfo[playerid][pColor] = 9; SCM(playerid, COLOR_WHITE,"{222222}Server:{FFFFFF} Nick color changed! Hope you like the new color!"); } case 10: { PlayerInfo[playerid][pColor] = 10; SCM(playerid, COLOR_WHITE,"{FF2C9D}Server:{FFFFFF} Nick color changed! Hope you like the new color!"); } } } } Cred ca la onplayertext e problema ... new szMessage[1000]; new szPlayerName[32]; GetPlayerName(playerid, szPlayerName, sizeof(szPlayerName)); ProxDetector(20.0, playerid,szMessage,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE); if(PlayerInfo[playerid][pColor] == 0) { format(szMessage, sizeof(szMessage), "{CECECE}%s:{FFFFFF} %s", szPlayerName, text); } else if(PlayerInfo[playerid][pColor] == 1) { format(szMessage, sizeof(szMessage), "{4169E1}%s:{FFFFFF} %s", szPlayerName, text); } else if(PlayerInfo[playerid][pColor] == 2) { format(szMessage, sizeof(szMessage), "{662BBE}%s:{FFFFFF} %s", szPlayerName, text); } else if(PlayerInfo[playerid][pColor] == 3) { format(szMessage, sizeof(szMessage), "{FFE600}%s:{FFFFFF} %s", szPlayerName, text); } else if(PlayerInfo[playerid][pColor] == 4) { format(szMessage, sizeof(szMessage), "{FF00FF}%s:{FFFFFF} %s", szPlayerName, text); } else if(PlayerInfo[playerid][pColor] == 5) { format(szMessage, sizeof(szMessage), "{3FFF3F}%s:{FFFFFF} %s", szPlayerName, text); } else if(PlayerInfo[playerid][pColor] == 6) { format(szMessage, sizeof(szMessage), "{83D553}%s:{FFFFFF} %s", szPlayerName, text); } else if(PlayerInfo[playerid][pColor] == 7) { format(szMessage, sizeof(szMessage), "{187700}%s:{FFFFFF} %s", szPlayerName, text); } else if(PlayerInfo[playerid][pColor] == 8) { format(szMessage, sizeof(szMessage), "{FF9A00}%s:{FFFFFF} %s", szPlayerName, text); } else if(PlayerInfo[playerid][pColor] == 9) { format(szMessage, sizeof(szMessage), "{222222}%s:{FFFFFF} %s", szPlayerName, text); } else if(PlayerInfo[playerid][pColor] == 10) { format(szMessage, sizeof(szMessage), "{FF2C9D}%s:{FFFFFF} %s", szPlayerName, text); } } Am incercat mai multe variante si cu ProxDetector dar atunci scrie de 2 ori in chat, prima data cu culoare pe care o selectezi si dupa cu culoare alba... P.S Am definit tot si nu primesc nicio eroare la compilare ..
-
Salutare bugged , cum as putea face ca atunci cand o masina intra intr-o zona cum ar fi PNS sa treaca prin celelalte masini (nocollisions) cum ar fii pe BUGGED acolo la PNS .. . E ca la safezone sau ?
-
Either no file name was submitted, or the file size exceeded the maximum size permitted Nu iti zice nimic ? daca nu ai host la phpmyadmin ai o limita maxina de 2 mb pt baza de date daca e mai mare de 2 mb nu se baga ... Verifica daca ai creata baza de date din phpmyadmin exact ca cea de la server (numele sa fie fix)