Jump to content

ToX1c

Membru
  • Posts

    245
  • Joined

  • Last visited

    Never

Everything posted by ToX1c

  1. ToX1c

    Problema

    Te duci la public SetPlayerToTeamColor(playerid) Ex: if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) SetPlayerColor(playerid,0xFFFFFF00); Aici e la hitman Culoarea care nu se vede pe mapa e 0xFFFFFF00
  2. ToX1c

    Textdraw

    Salut am 2 texte draw intrun loc amandoua si cum fac sa apara unu dupa altu? Textdraw0 = TextDrawCreate(495.0, 435.0,"www.sa-mp.ro"); TextDrawAlignment(Textdraw0,1); TextDrawBackgroundColor(Textdraw0,0x000000ff); TextDrawFont(Textdraw0,3); TextDrawLetterSize(Textdraw0,0.299999,1.000000); TextDrawColor(Textdraw0,0xE6D617FF); TextDrawSetOutline(Textdraw0,1); TextDrawSetProportional(Textdraw0,1); TextDrawSetShadow(Textdraw0,1); Textdraw1 = TextDrawCreate(495.0, 435.0,"Sa-mP"); TextDrawAlignment(Textdraw1,1); TextDrawBackgroundColor(Textdraw1,0x000000ff); TextDrawFont(Textdraw0,3); TextDrawLetterSize(Textdraw0,0.299999,1.000000); TextDrawColor(Textdraw0,0xE6D617FF); TextDrawSetOutline(Textdraw1,1); TextDrawSetProportional(Textdraw1,1); TextDrawSetShadow(Textdraw1,1); Multumesc
  3. Deasupra la asta } GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "%s Says: %s", sendername, text); //ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1,0,1,1,1,1); ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); return 0; } return 1; } Pui asta if(PlayerInfo[playerid][pAdmin] >= 1) { format(string, sizeof(string), "[AM] %s ", text); SetPlayerChatBubble(playerid, string, 0xFFA500FF, 30.0, 8000); } if(PlayerInfo[playerid][pLeader] >= 1) { format(string, sizeof(string), "[GM] %s ", text); SetPlayerChatBubble(playerid, string, 0xFF7D7DFF, 30.0, 8000); } Si vine asa { if(gPlayerLogged[playerid] == 0) { return 0; } if(PlayerInfo[playerid][pAdmin] >= 1) { format(string, sizeof(string), "[AM] %s ", text); SetPlayerChatBubble(playerid, string, 0xFFA500FF, 30.0, 8000); } if(PlayerInfo[playerid][pLeader] >= 1) { format(string, sizeof(string), "[GM] %s ", text); SetPlayerChatBubble(playerid, string, 0xFF7D7DFF, 30.0, 8000); } GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "%s Says: %s", sendername, text); //ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1,0,1,1,1,1); ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); return 0; } return 1; } Daca nu ai rezolvat vb pe mess.
  4. Te duci la if (realchat) Si sub ai asta { if(gPlayerLogged[playerid] == 0) { return 0; } GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "%s Says: %s", sendername, text); //ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1,0,1,1,1,1); ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); return 0; } return 1; } Adaugi asta peste cea de sus si o sa iti apara scrisul deasupra capului la admini si lideri { if(gPlayerLogged[playerid] == 0) { return 0; } if(PlayerInfo[playerid][pAdmin] >= 1) { format(string, sizeof(string), "[AM] %s ", text); SetPlayerChatBubble(playerid, string, 0xFFA500FF, 30.0, 8000); } if(PlayerInfo[playerid][pLeader] >= 1) { format(string, sizeof(string), "[GM] %s ", text); SetPlayerChatBubble(playerid, string, 0xFF7D7DFF, 30.0, 8000); } GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "%s Says: %s", sendername, text); //ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1,0,1,1,1,1); ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); return 0; } return 1; }
  5. Stunman cum afli coordonatele la textdraw de ex vreau sa il pun in colt dreapta jos si nuj coordonatele de unde le iau?
  6. Salut cum fac si eu comanda /aod cand un admin isi da aod sa nu ii mai scada deloc armura si healul.. //----------------------------------[Admin Aod]----------------------------------------------- if(strcmp(cmd, "/aod", true) == 0) { if (PlayerInfo[playerid][pAdmin] >= 1) { if(AdminDuty[playerid] == 1) { GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "Admin %s is now off duty.", sendername,playerid); SendClientMessageToAll(COLOR_LIGHTGREEN,string); AdminDuty[playerid] = 0; SetPlayerHealth(playerid,100); SetPlayerArmour(playerid,0); SetPlayerToTeamColor(playerid); } else { GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "Admin %s is now on duty.",sendername,playerid); SendClientMessageToAll(0x1B8EE4FF,string); AdminDuty[playerid] = 1; SetPlayerHealth(playerid,99999); SetPlayerArmour(playerid,99999); for(new i = 0; i < MAX_PLAYERS; i ++) { if(IsPlayerConnected(i)) { } } } } else { SendClientMessage(playerid,COLOR_GREY,"[GameSx]: Nu faci parte din staff GameSx !"); } return 1; }
  7. Unde trebuie pusa functia 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;
  8. C:\Documents and Settings\Ionut.IONUT-A382A6010.000\Desktop\sa\Games-Play\gamemodes\gxb.pwn(6238) : error 047: array sizes do not match, or destination array is too small Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error. Linia money = DecimalPoint(playerid);
  9. ToX1c

    Nume masina..

    Si cum fac textul mai subtire?
  10. Salut as vrea si eu o mana de ajutor nuj de unde sa schimb culoare nume la masina cand te urci in ea.. ca sa intelegeti mai bine...
  11. De cate ori apas pe butornu ala ca sa dau sa se incarce sau ce o face el in fine ca sa bage ce am lucrat eu acolo , imi apare o eroare pe urma dupa ce imi apare aceea eroare , in Partitia de din My Computer imi apare numele Modului.amx http://img.egaming.ro/image-5AB2_4B69F744.jpg dar dc imi apare nu stiu daca puteti sa ma ajutati pls Cine imi zice si mie cum fac spawn Secundary?
  12. ToX1c

    Reclama=Kick

    if(FindIP(text)) /// Anti-Reclama { SendClientMessage(playerid, COLOR_RED, "Ai luat kick din cauza ip-ului scris"); new advertiser[MAX_PLAYER_NAME]; GetPlayerName(playerid, advertiser, sizeof(advertiser)); format(string, sizeof(string), "SERVER: %s was kicked by Guardian, reason: Server Advertising",advertiser); SendClientMessageToAll(0xFF6347AA,string); KickLog(string); Kick(playerid); return 1; } Pui la public OnPlayerText(playerid, text[])
  13. ToX1c

    Wanted!

    Da-ti /setteam 2 daca esti cop.
  14. As vrea si eu sa fac incat gatele sa se deschida cand clacxonezi..si sa poata deschide doar Pd,F.B.I,NG,tRACKRU. #include <a_samp> #pragma tabsize 0 #define BLUE 0x0D7792AA new gate; new gate1; new gate2; forward GateClose(playerid); forward GateClose1(playerid); forward GateClose2(playerid); // This is a comment // uncomment the line below if you want to write a filterscript #define Filterscript #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Cop Gates By Shady91"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("\n----------------------------------"); print(" Cop Gates By Shady91"); print("----------------------------------\n"); } #endif public OnGameModeInit() { gate = CreateObject(968, 1544.745605, -1630.961792, 13.177118, 0.0000, 269.7592, 270.0000); CreateObject(994, 1544.744751, -1617.584961, 12.394474, 0.0000, 0.0000, 270.0000); CreateObject(994, 1543.487793, -1632.711548, 12.554396, 0.0000, 0.0000, 270.0000); gate1 = CreateObject(16773, 1591.846802, -1638.013550, 13.491905, 0.0000, 0.0000, 0.0000); CreateObject(1566, 1582.545532, -1637.891357, 13.580875, 0.0000, 0.0000, 0.0000); return 1; } public OnGameModeExit() { return 1; } public GateClose(playerid) { DestroyObject(gate); gate = CreateObject(968, 1544.745605, -1630.961792, 13.177118, 0.0000, 269.7592, 270.0000); return 1; } public GateClose1(playerid) { MoveObject(gate1, 1591.846802, -1638.013550, 13.491905, 0.8); return 1; } public GateClose2(playerid) { MoveObject(gate2, 1563.736816, -1617.390381, 12.382813, 0.8); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(cmdtext, "/pd", true)==0) { DestroyObject(gate); gate = CreateObject(968, 1544.746704, -1630.777222, 13.160947, 0.0000, 359.1406, 270.0000); SendClientMessage(playerid, BLUE, "PD Gate Opened It Will Close In 5 Seconds!"); SetTimer("GateClose", 5000, 0); return 1; } if (strcmp(cmdtext, "/pdgarage", true)==0) { MoveObject(gate1, 1591.738037, -1638.271606, -2.911936, 0.8); SendClientMessage(playerid, BLUE, "PD Garage Opened It Will Close In 10 Seconds!"); SetTimer("GateClose1", 10000, 0); return 1; } return 0; }
  15. Salut am si eu o problema cu pot sa fac portile de la lspd sa nu mai se deschida de catre playeri din alta factiune vreau sa deschida doar pd.fbi.ng.. #include <a_samp> #pragma tabsize 0 #define BLUE 0x0D7792AA new gate; new gate1; new gate2; forward GateClose(playerid); forward GateClose1(playerid); forward GateClose2(playerid); // This is a comment // uncomment the line below if you want to write a filterscript #define Filterscript #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Cop Gates By Shady91"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("\n----------------------------------"); print(" Cop Gates By Shady91"); print("----------------------------------\n"); } #endif public OnGameModeInit() { gate = CreateObject(968, 1544.745605, -1630.961792, 13.177118, 0.0000, 269.7592, 270.0000); CreateObject(994, 1544.744751, -1617.584961, 12.394474, 0.0000, 0.0000, 270.0000); CreateObject(994, 1543.487793, -1632.711548, 12.554396, 0.0000, 0.0000, 270.0000); gate1 = CreateObject(16773, 1591.846802, -1638.013550, 13.491905, 0.0000, 0.0000, 0.0000); CreateObject(1566, 1582.545532, -1637.891357, 13.580875, 0.0000, 0.0000, 0.0000); return 1; } public OnGameModeExit() { return 1; } public GateClose(playerid) { DestroyObject(gate); gate = CreateObject(968, 1544.745605, -1630.961792, 13.177118, 0.0000, 269.7592, 270.0000); return 1; } public GateClose1(playerid) { MoveObject(gate1, 1591.846802, -1638.013550, 13.491905, 0.8); return 1; } public GateClose2(playerid) { MoveObject(gate2, 1563.736816, -1617.390381, 12.382813, 0.8); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(cmdtext, "/pd", true)==0) { DestroyObject(gate); gate = CreateObject(968, 1544.746704, -1630.777222, 13.160947, 0.0000, 359.1406, 270.0000); SendClientMessage(playerid, BLUE, "PD Gate Opened It Will Close In 5 Seconds!"); SetTimer("GateClose", 5000, 0); return 1; } if (strcmp(cmdtext, "/pdgarage", true)==0) { MoveObject(gate1, 1591.738037, -1638.271606, -2.911936, 0.8); SendClientMessage(playerid, BLUE, "PD Garage Opened It Will Close In 10 Seconds!"); SetTimer("GateClose1", 10000, 0); return 1; } return 0; } Ma ajuta si pe mine cineva /...ca nu mere..lideru,
  16. Ms lideru Vreau si aici sa ma ajute cineva 2.Vreau si eu un anticheat sa dea automat ban cand cineva baga chat.ms.
  17. Mah ajuta si pe mine cineva..scz de post.
  18. Salut am si eu o problema cu pot sa fac portile de la lspd sa nu mai se deschida de catre playeri din alta factiune vreau sa deschida doar pd.fbi.ng.. <removed> - folosesti http://pawn.sa-mp.ro/ 2.Vreau si eu un anticheat sa dea automat ban cand cineva baga chat.ms. - un topic pt fiecare problema -Verifica reguliile altfel vei fii banat daca se mai repeta - (titlul)
×
×
  • 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.