Jump to content

IcE.

Membru
  • Posts

    1,094
  • Joined

  • Last visited

Everything posted by IcE.

  1. IcE.

    Comanda

    #define timpul 1000000 forward Restart(); public Restart() { SendRconCommand("gmx"); return 1; } public OnGameModeInit() { SetTimer("Restart", timpul, 1); return 1; } Sau daca vrei cu comanda : if(strcmp(cmd, "/gmx", true) == 0) { SendRconCommand("gmx"); return 1; }
  2. IcE.

    Comanda

    Sub OnGameMode SendRconCommand("comanda");
  3. cred:ai facut TextDraw 0/14 (cel pus la ongamemode) cu cordonatele corecte. Iar cand ai pus format(string,bla bla ai pus alte cordonate .... cred eu dar posteaza TextDraw-u si cu cel cu bara
  4. incerca sa pui ResetPlayerWeapons ps:incercati sa fiti atenti cand copiati comenzi dupa gm Raven's
  5. Ma nu aveti nevoie de acele functi //----------------------------------[GMX]----------------------------------------------- if(strcmp(cmd, "/gmx", true) == 0) { if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] >= 5) { //UpdateAllPlayersPosition(); GameModeExitFunc(playerid); } else { SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !"); } } return 1; }
  6. Si mie dc imi merge??? PWN http://solidfiles.com/d/6a1f/ AMX http://solidfiles.com/d/c24b/
  7. mda alt noob care face posturi in prostie Bravo 10/10 . Pacat ca am mapa pa unde e asta:(
  8. Posteaza erorile. Poate e de la altceva
  9. Poate nai pus stock. Poftim fara nici o eroare #include <a_samp> new Text:players; public OnFilterScriptInit() { // TextDraw for Players Online players = TextDrawCreate(54.000000, 326.000000, "_"); TextDrawBackgroundColor(players, 255); TextDrawFont(players, 2); TextDrawLetterSize(players, 0.500000, 1.000000); TextDrawColor(players, -65281); TextDrawSetOutline(players, 1); TextDrawSetProportional(players, 1); for(new i; i < MAX_PLAYERS; i ++) { if(IsPlayerConnected(i)) { TextDrawShowForPlayer(i, players); } } return 1; } public OnFilterScriptExit() { TextDrawHideForAll(players); TextDrawDestroy(players); return 1; } stock GetOnLinePlayers() { new OnLine; for(new i, g = GetMaxPlayers(); i < g; i++) if(IsPlayerConnected(i)) OnLine++; return OnLine; } public OnPlayerConnect(playerid) { new strings[15]; format(strings, 15, "%d/50",GetOnLinePlayers()); TextDrawSetString(players, strings); TextDrawShowForPlayer(playerid, players); return 1; }
  10. Incerca sa stergi toate TextDrawShowForPlayer(plyid, FACTION); si sa pui la OnPlayerSpaw
  11. 1.Copiezi TextDraw-u sub public OnGameModeInit() FACTION = TextDrawCreate(1.000000, 100.000000, " "); TextDrawAlignment(FACTION, 0); TextDrawBackgroundColor(FACTION, 0x6AF7E1FF); TextDrawFont(FACTION, 1); TextDrawLetterSize(FACTION, 0.339999, 1.100000); TextDrawColor(FACTION, 0x0000ff99); TextDrawSetOutline(FACTION, 1); TextDrawSetProportional(FACTION, 1); TextDrawSetShadow(FACTION, 1); 2.Pui toate linile sub un #define #define fac1 "PD Offiter" #define fac2 "nume2" #define fac3 "nume3" #define fac4 "nume4" #define fac5 "nume5" #define fac6 "nume6" #define fac7 "nume7" #define fac8 "nume8" #define fac9 "nume9" #define fac10 "nume10" #define fac11 "nume11" 3.In loc de nume2/3/4/5/6/7/8/9/10/11 pui numele factiuni. 4.Adaugi sub un new linia urmatoare new Text:FACTION; 5.Adaugi sub public OnPlayerConnect(playerid) linile urmatoare if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) { TextDrawShowForPlayer(plyid, FACTION); format(string, sizeof(string), fac1); FACTION = TextDrawCreate(1.000000, 100.000000, string); return 1; } if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) { TextDrawShowForPlayer(plyid, FACTION); format(string, sizeof(string), fac2); FACTION = TextDrawCreate(1.000000, 100.000000, string); return 1; } if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { TextDrawShowForPlayer(plyid, FACTION); format(string, sizeof(string), fac3); FACTION = TextDrawCreate(1.000000, 100.000000, string); return 1; } if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) { TextDrawShowForPlayer(plyid, FACTION); format(string, sizeof(string), fac4); FACTION = TextDrawCreate(1.000000, 100.000000, string); return 1; } if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5) { TextDrawShowForPlayer(plyid, FACTION); format(string, sizeof(string), fac5); FACTION = TextDrawCreate(1.000000, 100.000000, string); return 1; } if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6) { TextDrawShowForPlayer(plyid, FACTION); format(string, sizeof(string), fac6); FACTION = TextDrawCreate(1.000000, 100.000000, string); return 1; } if (PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7) { TextDrawShowForPlayer(plyid, FACTION); format(string, sizeof(string), fac7); FACTION = TextDrawCreate(1.000000, 100.000000, string); return 1; } if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) { TextDrawShowForPlayer(plyid, FACTION); format(string, sizeof(string), fac8); FACTION = TextDrawCreate(1.000000, 100.000000, string); return 1; } if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) { TextDrawShowForPlayer(plyid, FACTION); format(string, sizeof(string), fac9); FACTION = TextDrawCreate(1.000000, 100.000000, string); return 1; } if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10) { TextDrawShowForPlayer(plyid, FACTION); format(string, sizeof(string), fac10); FACTION = TextDrawCreate(1.000000, 100.000000, string); return 1; } if (PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11) { TextDrawShowForPlayer(plyid, FACTION); format(string, sizeof(string), fac11); FACTION = TextDrawCreate(1.000000, 100.000000, string); return 1; } 6.Acum daca ai mai multe factiuni faci asa: 1b.Mai adaugi linia #define fac12 "nume12" si modifici nume12. 2b.Acum copiati linia: if (PlayerInfo[playerid][pMember] == x || PlayerInfo[playerid][pLeader] == x) { TextDrawShowForPlayer(plyid, FACTION); format(string, sizeof(string), x); FACTION = TextDrawCreate(1.000000, 100.000000, string); return 1; } Si dupaia modificati x-urile cu ce nr factiuni. Si la format(string, sizeof(string), x); in loc de x puneti fac12 sau ce nr e factiunea. Sper ca ai inteles ..... ps:TextDraw-u apare sub bani. Poti face si tu altu ca sa apara unde vrei.
  12. sal, am facut unde SetPlayerPos & SetVehiclePos. Dar cand ii dau complire imi da 7 Warnings. F:\SBR3V~1\StreSS\FILTER~1\telefs.pwn(14) : warning 225: unreachable code F:\SBR3V~1\StreSS\FILTER~1\telefs.pwn(31) : warning 213: tag mismatch F:\SBR3V~1\StreSS\FILTER~1\telefs.pwn(31) : warning 213: tag mismatch F:\SBR3V~1\StreSS\FILTER~1\telefs.pwn(31) : warning 213: tag mismatch F:\SBR3V~1\StreSS\FILTER~1\telefs.pwn(36) : warning 213: tag mismatch F:\SBR3V~1\StreSS\FILTER~1\telefs.pwn(36) : warning 213: tag mismatch F:\SBR3V~1\StreSS\FILTER~1\telefs.pwn(36) : warning 213: tag mismatch Uitati si FS #include <a_samp> new string3[128]; new string4[128]; stock TelePos(playerid,text[],textw[],x,y,z) { new pn[16]; GetPlayerName(playerid, pn, 16); //new vehicleid = GetPlayerVehicleID(playerid); new State = GetPlayerState(playerid); if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER) { return SetPlayerPos(playerid,x,y,z); format(string3, sizeof(string3), "%s sa dus la /%s",pn, text); SendClientMessageToAll(0xFFD700AA, string3); format(string4, sizeof(string4), "Bun venit la /%s",textw); SendClientMessageToAll(0xFFD700AA, string4); } SetPlayerPos(playerid,x,y,z); format(string3, sizeof(string3), "%s sa dus la /%s",pn, text); SendClientMessageToAll(0xFFD700AA, string3); format(string4, sizeof(string4), "Bun venit la /%s",textw); SendClientMessageToAll(0xFFD700AA, string4); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/sl", cmdtext, true, 10) == 0) { TelePos(playerid,"sl","Stunt Land",-2453.7859,1444.5114,5.1977); return 1; } if (strcmp("/sl2", cmdtext, true, 10) == 0) { TelePos(playerid,"sl2","Stunt Land",-1180.7446,-1059.5511,128.7267); return 1; } return 0; }
  13. public OnPlayerText(playerid, text[]) { SetPlayerChatBubble(playerid, text, 0xFF0000FF, 100.0, 10000); return 1; }
  14. 1.Intri in GM dai CTRL+F si cauti forward Encrypt(string[]);. Si il stregi linia. 2.Dupaia cauti public Encrypt(string[]) . Si stergi ce e jos: public Encrypt(string[]) { for(new x=0; x < strlen(string); x++) { string[x] += (3^x) * (x % 15); if(string[x] > (0xff)) { string[x] -= 256; } } return 1; } 3.Dupaia cauti Encrypt(tmppass); si stergi totul .
  15. da stiu cum e nam aflat de la ce e.. Pana atunci intra pe server dai /rcon login (parola ta rcon) si dupaia /makeadmin 0 1338
  16. IcE.

    Nick color !

    Pune sub OnPlayerConnect
  17. Uite sub forma de dialog if(strcmp(cmdtext, "/bug", true)==0) { ShowPlayerDialog(playerid,446,DIALOG_STYLE_INPUT,"Vreau Admin","\nIndrodu mesajul tau!\n\n","Trimite","Anuleaza"); return 1; } if(dialogid == 446) { if(response) { new File:adminlog; adminlog = fopen("admin.txt",io_append); new message[264],name[24]; GetPlayerName(playerid,name,sizeof(name)); format(message, sizeof(message), "\n %s Vrea mesaj. TEXT: %s", name,inputtext); fwrite(adminlog,message); fclose(adminlog); ShowPlayerDialog(playerid,447,DIALOG_STYLE_MSGBOX,"Mesaj Trimis","In scurt timp vei primi admin..","Ok","Ok"); return 1; } }
  18. pune si niste poze ps: comenzile nu vor merge nu trebuia sa lasi spatiu de ex /rb geton nu e buna corect e /rbgeton
  19. ai puso sub public OnGameModeInit() { SetDisabledWeapons(43,44,45); ....Altele...... return 1; }
  20. IcE.

    Text Draw

    Poftim // This is a comment // uncomment the line below if you want to write a filterscript //#define FILTERSCRIPT #include <a_samp> #define Text_Logo "textul tau" forward logoanim(); forward logoanim2(); forward TextDraw(playerid); new Text:logo; public OnPlayerConnect() { SetTimer("logoanim2",1,false); return 1; } public OnFilterScriptInit() { SetTimer("TextDraw",1,false); return 1; } public TextDraw(playerid) { logo = TextDrawCreate(500.0, 5.0,Text_Logo); TextDrawFont(logo, 0); TextDrawColor(logo,0xD2B586FF); TextDrawLetterSize(logo, 0.7, 1); TextDrawShowForPlayer(playerid, logo); } public logoanim() { TextDrawDestroy(logo); SetTimer("logoanim2",5000,false); } public logoanim2() { logo = TextDrawCreate(500.0, 5.0,Text_Logo); TextDrawFont(logo, 0); TextDrawColor(logo,0xD2B586FF); TextDrawLetterSize(logo, 0.7, 1); TextDrawShowForAll(logo); SetTimer("logoanim",5000,false); }
  21. dai CTRL+F si scrie stock si pui inaintea sa. de ex... stock DecimalPoint(playerid) { new str[30]; new cash=GetPlayerMoney(playerid); if(cash >= 0) { format(str, sizeof(str), "$%d", cash); if(1000 <= cash < 10000) strins(str, ".", 2, sizeof(str)); else if(10000 <= cash < 100000) strins(str, ".", 3, sizeof(str)); else if(100000 <= cash < 1000000) strins(str, ".", 4, sizeof(str)); else if(1000000 <= cash < 10000000) { strins(str, ".", 2, sizeof(str)); strins(str, ".", 6, sizeof(str)); } else if(10000000 <= cash < 100000000) { strins(str, ".", 3, sizeof(str)); strins(str, ".", 7, sizeof(str)); } else if(100000000 <= cash < 1000000000) { strins(str, ".", 4, sizeof(str)); strins(str, ".", 8, sizeof(str)); } else if(cash >= 1000000000) { strins(str, ".", 2, sizeof(str)); strins(str, ".", 6, sizeof(str)); strins(str, ".", 10, sizeof(str)); } } else { format(str, sizeof(str), "-$%d", cash-(cash*2)); if(-1000 >= cash > -10000) strins(str, ".", 3, sizeof(str)); else if(-10000 >= cash > -100000) strins(str, ".", 4, sizeof(str)); else if(-100000 >= cash > -1000000) strins(str, ".", 5, sizeof(str)); else if(-1000000 >= cash > -10000000) { strins(str, ".", 3, sizeof(str)); strins(str, ".", 7, sizeof(str)); } else if(-10000000 >= cash > -100000000) { strins(str, ".", 4, sizeof(str)); strins(str, ".", 8, sizeof(str)); } else if(-100000000 >= cash > -1000000000) { strins(str, ".", 5, sizeof(str)); strins(str, ".", 9, sizeof(str)); } else if(cash <= -1000000000) { strins(str, ".", 3, sizeof(str)); strins(str, ".", 7, sizeof(str)); strins(str, ".", 11, sizeof(str));} } return str; } stock BlaBla(playerid) { Bla Bla Bla }
  22. ciudat eu am incercat si imi merge.. V2 cum sal faci sa merga 1.Cauta linia format(coordsstring, sizeof(coordsstring), "Level:[%d] Sex:[%s] Age:[%d] Origin:[%s] SpawnHealth:[%.1f] Cash:[$%d] Bank:[$%d] Ph:[%d]", level,atext,age,otext,shealth+50, cash, account, pnumber); si inlocuio cu format(coordsstring, sizeof(coordsstring), "Level:[%d] Sex:[%s] Age:[%d] Origin:[%s] SpawnHealth:[%.1f] Cash:[$%d] Bank:[$%d] Ph:[%d]", level,atext,age,otext,shealth+50, DecimalPoint(targetid), account, pnumber); 2. Stergi new cash = GetPlayerMoney(targetid); 3. Inlocuie functia DecimalPoint cu stock DecimalPoint(playerid) { new str[30]; new cash=GetPlayerMoney(playerid); if(cash >= 0) { format(str, sizeof(str), "$%d", cash); if(1000 <= cash < 10000) strins(str, ".", 2, sizeof(str)); else if(10000 <= cash < 100000) strins(str, ".", 3, sizeof(str)); else if(100000 <= cash < 1000000) strins(str, ".", 4, sizeof(str)); else if(1000000 <= cash < 10000000) { strins(str, ".", 2, sizeof(str)); strins(str, ".", 6, sizeof(str)); } else if(10000000 <= cash < 100000000) { strins(str, ".", 3, sizeof(str)); strins(str, ".", 7, sizeof(str)); } else if(100000000 <= cash < 1000000000) { strins(str, ".", 4, sizeof(str)); strins(str, ".", 8, sizeof(str)); } else if(cash >= 1000000000) { strins(str, ".", 2, sizeof(str)); strins(str, ".", 6, sizeof(str)); strins(str, ".", 10, sizeof(str)); } } else { format(str, sizeof(str), "-$%d", cash-(cash*2)); if(-1000 >= cash > -10000) strins(str, ".", 3, sizeof(str)); else if(-10000 >= cash > -100000) strins(str, ".", 4, sizeof(str)); else if(-100000 >= cash > -1000000) strins(str, ".", 5, sizeof(str)); else if(-1000000 >= cash > -10000000) { strins(str, ".", 3, sizeof(str)); strins(str, ".", 7, sizeof(str)); } else if(-10000000 >= cash > -100000000) { strins(str, ".", 4, sizeof(str)); strins(str, ".", 8, sizeof(str)); } else if(-100000000 >= cash > -1000000000) { strins(str, ".", 5, sizeof(str)); strins(str, ".", 9, sizeof(str)); } else if(cash <= -1000000000) { strins(str, ".", 3, sizeof(str)); strins(str, ".", 7, sizeof(str)); strins(str, ".", 11, sizeof(str));} } return str; }
  23. Dai CTRL+F si scrie new cash = GetPlayerMoney(targetid); . si schimbi cu new money[24]; money = DecimalPoint(playerid); Dupaia cauta asta format(coordsstring, sizeof(coordsstring), "Level:[%d] Sex:[%s] Age:[%d] Origin:[%s] SpawnHealth:[%.1f] Cash:[$%d] Bank:[$%d] Ph:[%d]", level,atext,age,otext,shealth+50, cash, account, pnumber); si modifica cum e jos format(coordsstring, sizeof(coordsstring), "Level:[%d] Sex:[%s] Age:[%d] Origin:[%s] SpawnHealth:[%.1f] Cash:[$%d] Bank:[$%d] Ph:[%d]", level,atext,age,otext,shealth+50, money, account, pnumber);
×
×
  • 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.