-
Posts
1,557 -
Joined
-
Last visited
-
Days Won
28
Content Type
Profiles
Forums
News
Documentation
Everything posted by Джо
-
Uite aici: [pawn]if(strcmp(cmd, "/report", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pMuted] == 1) { SendClientMessage(playerid, TEAM_CYAN_COLOR, "You cannot speak, you have been silenced"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GRAD2, "CMD: /report [text]"); return 1; } if(FindIP(result)) /// Anti-Reclama { SendClientMessage(playerid, COLOR_RED, "Ai primit kick de la Guardian deoarece ai scris o adresa IP."); new advertiser[MAX_PLAYER_NAME]; GetPlayerName(playerid, advertiser, sizeof(advertiser)); SendClientMessageToAll(COLOR_RED,string); KickLog(string); Kick(playerid); return 1; } if(anty(result) && PlayerInfo[playerid][pAdmin] == 0 && PlayerInfo[playerid][pHelper] == 0) { new advertiser[MAX_PLAYER_NAME]; GetPlayerName(playerid, advertiser, sizeof(advertiser)); format(string, sizeof(string), "[LegendCS]: {FFFF00}%s a primit kick.Motiv: Reclama pe /report",advertiser); SendClientMessageToAll(COLOR_RED,string); new stringreclama[256]; format(stringreclama, sizeof(stringreclama), "%s a scris: %s",advertiser, result); ABroadCast(COLOR_YELLOW, stringreclama, 1); return 0; } if(PlayerInfo[playerid][pAdmin] == 0 || PlayerInfo[playerid][pHelper] == 0) { for(new i=0; i<MAX_ENTRY; i++) { if(!Swear[0]) continue; Cenzura(result,Swear); } } format(string, sizeof(string), "*Nou report de la %s [iD:%d] : %s", sendername, playerid, (result)); ABroadCast(COLOR_GREEN,string,1); SendClientMessage(playerid, COLOR_BLUE, "*Reportul tau a fost trimis adminilor online"); } return 1; }[/pawn]
-
Ma bine dai tu daca esti ...... si esti "cel mai bun scripter din romania"
-
Nu a cerut frate nici un script!!!! Fytza: Cauta: format(string, sizeof(string), "%s: %s", sendername, text);
-
Inseamna ca nu este de la dialog.Ce ai modificat inainte de a aparea eroarea?
-
www.mtavc.com Ia de aici ultima versiune.
-
Stiu si eu asta dar cum fac acea verificare de sob?
-
Pune asta: [pawn]if(fexist(string)) { gPlayerAccount[playerid] = 1; //4320 new loginstring[128]; //4321 new loginname[64]; //4322 GetPlayerName(playerid,loginname,sizeof(loginname)); //4323 format(loginstring,sizeof(loginname),"{00C0FF}Bun venit, {F3FF02}%s\n{00C0FF}acum te poti loga:",loginname); //4324 ShowPlayerDialog(playerid,22,DIALOG_STYLE_PASSWORD,"Login",loginstring,"Login","Exit"); //4325 return 1; //4326 }[/pawn]
-
Nu trebuie neaparat,intra prima data pe server si scrie normal...Vei vedea ca scrie exepmlu fytza says sau spune:... Acum mergi in gamemode si cauti %s says sau spune:Depinde cum ai vazut pe server. Si schimbi de acolo! Exemplu: format(string, sizeof(string), "%s: %s", sendername, text); Tu pui: format(string, sizeof(string), "Nume Server: %s: %s", sendername, text); Atentie!Acesta a fost un model dupa care sa te iei.Asa acum poti sa adaugi putina culoare cautand pe goagle hax coleour samp.Asa ai sa gasesti ceva in genul acesta: http://wiki.sa-mp.com/wiki/Hex_colours Bun,fi atent daca doresti sa pui culoarea in pawno exemplu FFFFFF=6xF,trebuie sa pui asa {FFFFFF} Adica cu { } in fata.
-
Nu merge comanda pentru ca este randul acesta! [pawn]if(strcmp(cmd, "/abigear", true) == 0 && PlayerInfo[playerid][pAdmin] >= 3)[/pawn] Cat de inteligent sa fi sa folosesti && PlayerInfo....? Sfatul meu? Ia o comanda exemplu /gotols si copiaza pana la [pAdmin] >=3); ( Dupa care pui restul comenzii si anume : SCM(playerid, 0x33CCFFAA,"__________________[ Admin - BigEars ]_____________________"); GetPlayerName(i, sendername, sizeof(sendername)); for(new i = 0; i < MAX_PLAYERS; i++) { if (PlayerInfo[pBigEar] == 1) { format(string, 256, "[iD:{FF0000}%d{00A3FF}] Nume Admin{FFFFFF}: %s", i, sendername); SendClientMessage(playerid, COLOR_WHITE, string); } } } return (1) ; }
-
-Nu asta vroiam:(Eu doresc sa fac ca si in imagine,e chiar asa de greu de facut?(
-
Cum ar fi?Ce obiecte?
-
Daca sti sa faci in gamemode sa se salveze skinul de PD/SRI/Jandarmerie etc...Nu te ajut daca nu sti te ajut...Iar la problema cu /buygun cum spuneai tu ca nu iti mai merge nici o comanda incearca asta: [pawn]if (strcmp(cmd, "/buygun", true) == 0) { if(IsPlayerConnected(playerid)) { if(GetPlayerMoney(playerid) < 1) { SendClientMessage(playerid, COLOR_GREY, " Nu ai destui bani !"); return 1; } new gun; new gunid[16]; new gunstring1[256]; new gunstring2[256]; new gunstring3[256]; new gunstring4[256]; new gunstring5[256]; new infostring[256]; new guncharge; new ammocharge; new location = PlayerInfo[playerid][pLocal]; if(location == 99 || location == 100) { new mod = 100; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { format(string, sizeof(string), "UTILIZEAZA: /buygun [NumeArma] [Munitie]"); SendClientMessage(playerid, COLOR_GREEN,"_______________________________________"); SendClientMessage(playerid, COLOR_WHITE,"*** Arme, Echipamente, Accesorii si Munitie ***"); SendClientMessage(playerid, COLOR_GRAD2,string); format(gunstring1, 256, "Echipamente: parachute ($%d) golfclub ($%d) nightstick ($%d) baseballbat ($%d) shovel ($%d) poolcue ($%d)", GunPrice[0][0]/100*mod,GunPrice[1][0]/100*mod,GunPrice[2][0]/100*mod,GunPrice[4][0]/100*mod,GunPrice[5][0]/100*mod,GunPrice[6][0]/100*mod); SendClientMessage(playerid, COLOR_GRAD3, gunstring1); format(gunstring2, 300, "Accesorii: purpledildo ($%d) whitedildo ($%d) longwhitedildo ($%d) whitedildo2 ($%d) flowers ($%d) cane ($%d)", GunPrice[7][0]/100*mod,GunPrice[8][0]/100*mod,GunPrice[9][0]/100*mod,GunPrice[10][0]/100*mod,GunPrice[11][0]/100*mod,GunPrice[12][0]/100*mod); SendClientMessage(playerid, COLOR_GRAD3, gunstring2); format(gunstring3, 256, "Arme: sdpistol ($%d) deagle ($%d) mp5 ($%d)", GunPrice[13][0]/100*mod,GunPrice[15][0]/100*mod,GunPrice[18][0]/100*mod); SendClientMessage(playerid, COLOR_GRAD3, gunstring3); format(gunstring4, 256, "Arme: shotgun ($%d) ak47 ($%d) m4 ($%d) rifle ($%d)", GunPrice[19][0]/100*mod,GunPrice[22][0]/100*mod,GunPrice[23][0]/100*mod,GunPrice[24][0]/100*mod); SendClientMessage(playerid, COLOR_GRAD3, gunstring4); format(gunstring5, 256, "Munitie: pistolammo ($%d) shotgunammo ($%d) smgammo ($%d) assaultammo ($%d) rifleammo ($%d)", GunPrice[25][0],GunPrice[26][0],GunPrice[27][0],GunPrice[28][0],GunPrice[29][0]); SendClientMessage(playerid, COLOR_GRAD3, gunstring5); SendClientMessage(playerid, COLOR_GREEN,"_______________________________________"); return 1; } strmid(gunid, tmp, 0, strlen(cmdtext), 255); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { format(string, sizeof(string), "UTILIZEAZA: /buygun [Nume Arma] [Munitie]"); return 1; } new ammo = strval(tmp); if(ammo < 1 || ammo > 300) { SendClientMessage(playerid, COLOR_GREY, " Munitia trebuie sa fie intre 1 si 300 !"); return 1; } if (strcmp(gunid, "parachute", true, strlen(gunid)) == 0) { gun = 46; guncharge = GunPrice[0][0]/100*mod; ammocharge = 0; } else if (strcmp(gunid, "golfclub", true, strlen(gunid)) == 0) { gun = 2; guncharge = GunPrice[1][0]/100*mod; ammocharge = 0; //PlayerInfo[playerid][pGun1] = 2; PlayerInfo[playerid][pAmmo1] = 1; } else if (strcmp(gunid, "nightstick", true, strlen(gunid)) == 0) { gun = 3; guncharge = GunPrice[2][0]/100*mod; ammocharge = 0; //PlayerInfo[playerid][pGun1] = 3; PlayerInfo[playerid][pAmmo1] = 1; } else if (strcmp(gunid, "baseballbat", true, strlen(gunid)) == 0) { gun = 5; guncharge = GunPrice[4][0]/100*mod; ammocharge = 0; //PlayerInfo[playerid][pGun1] = 5; PlayerInfo[playerid][pAmmo1] = 1; } else if (strcmp(gunid, "shovel", true, strlen(gunid)) == 0) { gun = 6; guncharge = GunPrice[5][0]/100*mod; ammocharge = 0; //PlayerInfo[playerid][pGun1] = 6; PlayerInfo[playerid][pAmmo1] = 1; } else if (strcmp(gunid, "poolcue", true, strlen(gunid)) == 0) { gun = 7; guncharge = GunPrice[6][0]/100*mod; ammocharge = 0; //PlayerInfo[playerid][pGun1] = 7; PlayerInfo[playerid][pAmmo1] = 1; } else if (strcmp(gunid, "purpledildo", true, strlen(gunid)) == 0) { gun = 10; guncharge = GunPrice[7][0]/100*mod; ammocharge = 0; //PlayerInfo[playerid][pGun1] = 10; PlayerInfo[playerid][pAmmo1] = 1; } else if (strcmp(gunid, "whitedildo", true, strlen(gunid)) == 0) { gun = 11; guncharge = GunPrice[8][0]/100*mod; ammocharge = 0; //PlayerInfo[playerid][pGun1] = 11; PlayerInfo[playerid][pAmmo1] = 1; } else if (strcmp(gunid, "longwhitedildo", true, strlen(gunid)) == 0) { gun = 12; guncharge = GunPrice[9][0]/100*mod; ammocharge = 0; //PlayerInfo[playerid][pGun1] = 12; PlayerInfo[playerid][pAmmo1] = 1; } else if (strcmp(gunid, "whitedildo2", true, strlen(gunid)) == 0) { gun = 13; guncharge = GunPrice[10][0]/100*mod; ammocharge = 0; //PlayerInfo[playerid][pGun1] = 13; PlayerInfo[playerid][pAmmo1] = 1; } else if (strcmp(gunid, "flowers", true, strlen(gunid)) == 0) { gun = 14; guncharge = GunPrice[11][0]/100*mod; ammocharge = 0; //PlayerInfo[playerid][pGun1] = 14; PlayerInfo[playerid][pAmmo1] = 1; } else if (strcmp(gunid, "cane", true, strlen(gunid)) == 0) { gun = 15; guncharge = GunPrice[12][0]/100*mod; ammocharge = 0; //PlayerInfo[playerid][pGun1] = 15; PlayerInfo[playerid][pAmmo1] = 1; } else if (strcmp(gunid, "sdpistol", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pGunLic] != 1) { SendClientMessage(playerid, COLOR_LIGHTRED, "Nu poti cumpara acesta arma fara licenta."); return 1; } gun = 23; guncharge = GunPrice[13][0]/100*mod; ammocharge = GunPrice[25][0]*ammo; //PlayerInfo[playerid][pGun2] = 23; PlayerInfo[playerid][pAmmo2] = ammo; } else if (strcmp(gunid, "deagle", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pGunLic] != 1) { SendClientMessage(playerid, COLOR_LIGHTRED, "Nu poti cumpara acesta arma fara licenta."); return 1; } gun = 24; guncharge = GunPrice[15][0]/100*mod; ammocharge = GunPrice[25][0]*ammo; //PlayerInfo[playerid][pGun2] = 24; PlayerInfo[playerid][pAmmo2] = ammo; } else if (strcmp(gunid, "mp5", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pGunLic] != 1) { SendClientMessage(playerid, COLOR_LIGHTRED, "Nu poti cumpara acesta arma fara licenta."); return 1; } gun = 29; guncharge = GunPrice[18][0]/100*mod; ammocharge = GunPrice[27][0]*ammo; //PlayerInfo[playerid][pGun3] = 29; PlayerInfo[playerid][pAmmo3] = ammo; } else if (strcmp(gunid, "shotgun", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pGunLic] != 1) { SendClientMessage(playerid, COLOR_LIGHTRED, "Nu poti cumpara acesta arma fara licenta."); return 1; } gun = 25; guncharge = GunPrice[19][0]/100*mod; ammocharge = GunPrice[26][0]*ammo; //PlayerInfo[playerid][pGun3] = 25; PlayerInfo[playerid][pAmmo3] = ammo; } else if (strcmp(gunid, "ak47", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pGunLic] != 1) { SendClientMessage(playerid, COLOR_LIGHTRED, "Nu poti cumpara acesta arma fara licenta."); return 1; } gun = 30; guncharge = GunPrice[22][0]/100*mod; ammocharge = GunPrice[28][0]*ammo; //PlayerInfo[playerid][pGun4] = 30; PlayerInfo[playerid][pAmmo4] = ammo; } else if (strcmp(gunid, "m4", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pGunLic] != 1) { SendClientMessage(playerid, COLOR_LIGHTRED, "Nu poti cumpara acesta arma fara licenta."); return 1; } gun = 31; guncharge = GunPrice[23][0]/100*mod; ammocharge = GunPrice[28][0]*ammo; //PlayerInfo[playerid][pGun4] = 31; PlayerInfo[playerid][pAmmo4] = ammo; } else if (strcmp(gunid, "rifle", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pGunLic] != 1) { SendClientMessage(playerid, COLOR_LIGHTRED, "Nu poti cumpara acesta arma fara licenta."); return 1; } gun = 33; guncharge = GunPrice[24][0]/100*mod; ammocharge = GunPrice[29][0]*ammo; //PlayerInfo[playerid][pGun4] = 33; PlayerInfo[playerid][pAmmo4] = ammo; } else { SendClientMessage(playerid, COLOR_GRAD6, "Vanzator: Nu avem acesta arma in stoc."); return 1; } if((guncharge+ammocharge) > GetPlayerMoney(playerid)) { format(infostring, 256, " Nu ai $%d pentru a cumpara arma !",guncharge+ammocharge); SendClientMessage(playerid, COLOR_GRAD3, infostring); return 1; } new payout = guncharge + ammocharge; format(infostring, 256, "Ai cumparat %s cu %d gloante pentru $%d",gunid,ammo,payout); SendClientMessage(playerid, COLOR_GRAD3, infostring); SafeGivePlayerMoney(playerid, - payout); BizzInfo[location-99][bTill] += payout; PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); SafeGivePlayerWeapon(playerid, gun, ammo); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "%s a cumparat arme in valoare de $%d de la afacerea %d", sendername, payout, location-99); printf("%s", string); PayLog(string); } else { SendClientMessage(playerid, COLOR_WHITE,"Nu esti in magazin."); return 1; } } return 1; }[/pawn]Schimbi tu pretul si bagi interiorul magazinului de arme.
-
Offf chiar asa de inteligent esti incat sa nu iti fi dat seama ca de la asta este problema? [pawn]if(strcmp(cmd, "/abigear", true) == 0 && PlayerInfo[playerid][pAdmin] >= 3)[/pawn] Pune: [pawn]if(strcmp(cmd, "/gotopd", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 3) { SCM(playerid, 0x33CCFFAA,"__________________[ Admin - BigEars ]_____________________"); GetPlayerName(i, sendername, sizeof(sendername)); for(new i = 0; i < MAX_PLAYERS; i++) { if (PlayerInfo[pBigEar] == 1) { format(string, 256, "[iD:{FF0000}%d{00A3FF}] Nume Admin{FFFFFF}: %s", i, sendername); SendClientMessage(playerid, COLOR_WHITE, string); } } } return (1) ; }[/pawn]
-
Am frate anti s 0 b e i t (junkbuster 11) foarte eficient dar as dori sa vad cum fac aceasta faza.
-
Salut,joc de mult pe un server roman cu 1000 de playeri pe zi <Nu se face reclama aici>.Sper ca nu am facut reclama. Bun sa continuam.Ce as vrea sa stiu?Cum fac si eu ca dupa ce te loghezi pe server sa te detecteze de [censured by the system] si sa iti dea kick/ban ca in poza urmatoare?
-
Sefu,pune ; dupa ce ai terminat variabila la linia 2638
-
Pune asta: [pawn]#define PRIZE_PER_CONTEST 5050 #define PRIZE_PER_CONTEST_SCO 1[/pawn]
-
Dane linia PRIZE_PER_CONTEST
-
Totul pare in regula la comanda /factions
-
Mareste linia la 258,va arata cam asa [pawn]new string [258][/pawn]
-
Rezolvat. T/C!Mersi celmaitarevip:)
-
Salut,am si eu o problema....Am mai avut aceasta problema dar mia remediato Gireada.Probelma consta in urmatoarea: Cand compilez GM-ul imi apare urmatoarele erori cu "strtok". [pawn]D:\Servere Roleplay\a2viata.pwn(2877) : error 021: symbol already defined: "JBC_GetPlayerSpeed" D:\Servere Roleplay\a2viata.pwn(15990) : error 017: undefined symbol "strtok" D:\Servere Roleplay\a2viata.pwn(15990) : error 033: array must be indexed (variable "cmd") D:\Servere Roleplay\a2viata.pwn(16090) : warning 219: local variable "string" shadows a variable at a preceding level D:\Servere Roleplay\a2viata.pwn(16109) : error 017: undefined symbol "strtok" D:\Servere Roleplay\a2viata.pwn(16109) : error 033: array must be indexed (variable "x_nr") D:\Servere Roleplay\a2viata.pwn(16174) : error 017: undefined symbol "strtok" D:\Servere Roleplay\a2viata.pwn(16174) : error 033: array must be indexed (variable "tmp") D:\Servere Roleplay\a2viata.pwn(16226) : error 017: undefined symbol "strtok" D:\Servere Roleplay\a2viata.pwn(16226) : error 033: array must be indexed (variable "tmp") D:\Servere Roleplay\a2viata.pwn(16268) : error 017: undefined symbol "strtok" D:\Servere Roleplay\a2viata.pwn(16268) : error 033: array must be indexed (variable "tmp") D:\Servere Roleplay\a2viata.pwn(16353) : error 017: undefined symbol "strtok" D:\Servere Roleplay\a2viata.pwn(16353) : error 033: array must be indexed (variable "tmp") D:\Servere Roleplay\a2viata.pwn(16372) : error 017: undefined symbol "strtok" D:\Servere Roleplay\a2viata.pwn(16372) : error 033: array must be indexed (variable "tmp") D:\Servere Roleplay\a2viata.pwn(16396) : error 017: undefined symbol "strtok" D:\Servere Roleplay\a2viata.pwn(16396) : error 033: array must be indexed (variable "tmp") D:\Servere Roleplay\a2viata.pwn(16404) : error 017: undefined symbol "strtok" D:\Servere Roleplay\a2viata.pwn(16404) : error 033: array must be indexed (variable "tmp") D:\Servere Roleplay\a2viata.pwn(16466) : error 017: undefined symbol "strtok" D:\Servere Roleplay\a2viata.pwn(16466) : error 033: array must be indexed (variable "tmp") D:\Servere Roleplay\a2viata.pwn(16663) : error 017: undefined symbol "strtok" D:\Servere Roleplay\a2viata.pwn(16663) : error 033: array must be indexed (variable "tmp") D:\Servere Roleplay\a2viata.pwn(16679) : error 017: undefined symbol "strtok" D:\Servere Roleplay\a2viata.pwn(16679) : error 033: array must be indexed (variable "x_nr") D:\Servere Roleplay\a2viata.pwn(16728) : error 017: undefined symbol "strtok" Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors. [/pawn]
-
Cauta pe goagle, mysql, il inveti si dupa vei sti care este problema,PS: Daca nu ai timp ca si mine,ia un antichrash.text Deschizi serverul si intri tu pe el,ti se inchide si dupa uitate in anticrash.text document.Vei vedea care este problema. P.S.Serverul lui Gireada are anticrash.text document,te sfatuiesc sa il iei de acolo.