Jump to content

Mafia.

V.I.P
  • Posts

    792
  • Joined

  • Last visited

  • Days Won

    12

Everything posted by Mafia.

  1. Mafia.

    Problema

    Uite aicia comana cum vrei tu . [pawn] if(strcmp(cmd, "/adminchat", true) == 0 || strcmp(cmd, "/a", true) == 0) { if(IsPlayerConnected(playerid)) { 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(FindIP(result)) /// Anti-Reclama { new advertiser[MAX_PLAYER_NAME]; GetPlayerName(playerid, advertiser, sizeof(advertiser)); format(string, sizeof(string), "AdmCmd: %s was warned & kicked by GARDIAN Romania BOT, reason: Server Advertising",advertiser); SendClientMessageToAll(COLOR_LIGHTRED,string); KickLog(string); PlayerInfo[playerid][pWarns] += 1; Kick(playerid); return 1; } if(!strlen(result)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/a)dminchat [text]"); return 1; } new arank[64]; if(PlayerInfo[playerid][pAdmin] == 1) { arank = "DemoAdmin "; } else if(PlayerInfo[playerid][pAdmin] == 2) { arank = "FastAdmin "; } else if(PlayerInfo[playerid][pAdmin] == 3) { arank = "CrazyAdmin "; } else if(PlayerInfo[playerid][pAdmin] == 4) { arank = "eXtraAdmiN "; } else if(PlayerInfo[playerid][pAdmin] == 1337) { arank = "UltraAdmin "; } else if(PlayerInfo[playerid][pAdmin] == 1338) { arank = "Co-Owner"; } else if(PlayerInfo[playerid][pAdmin] == 1339) { arank = "Owner "; } else if(PlayerInfo[playerid][pAdmin] == 1340) { arank = "Scripter"; } else { arank = "Impostor"; } format(string, sizeof(string), "[%s] [%s] say: %s", arank, sendername, result); new string1[256]; format(string1, sizeof(string1), "%s", string); AdminChatLog(string1); if (PlayerInfo[playerid][pAdmin] >= 1) { SendAdminMessage(COLOR_ORANGE, string); } printf("Admin %s: %s", sendername, result); } return 1; }[/pawn]
  2. Foloseste streamerul ista daca vrei cu CreateDynamicObject streamer.dll: http://www.solidfiles.com/d/7cef8b4430/ streamer.so:http://www.solidfiles.com/d/a0140b0585/ Imi spui daca ti-a mers
  3. la Host pui ip de la ftp ! (care ti la dat cei de la firma) la username pui Numele (la fel care ti-au dat cei de la firma) la password pui parola (la fel care ti-au dato ei) si la port pui portul de ex 7777 (nu este obligatoriu) un ex : Host : 187.155.5468 Username : mafia password : test port 7777 ista e un ex.
  4. Mafia.

    Ajutor Server

    http://www.sa-mp.ro/forum/index.php?topic=23155.0 - Uite aicia un tutorial cum sa urci un server de samp pe Host
  5. La plugins trebe sa ai asa : plugins streamer.so sscaff.so PS: Si verifica si Foldesul plugins daca le ai .
  6. Mafia.

    [MAP]Party LS

    Pentru inceput e bine 4/5
  7. La plugins trebe sa ai asa : plugins streamer.so sscaff.so
  8. Fa o cerere de Tutorial unde a spus Si Bubu .
  9. Imi cer scuze pentru greselile de Ortografie . Multumesc Bubu ca ai dat edit Am pus si cateva poze .
  10. Acest tutorial este despre cum poti sa faci o factiune , Si factiunea care o faci o implementezi/o faci in Gm direct nu FS . Incerca si daca iti da erori sau ceva posteaza aicia si te voi ajuta.
  11. Salut . Astazi va voi învata cum sa puneti un server de SA:MP pe HOST cu ajutorul programului FilleZilla. 1. Downloadati FilleZilla de aici http://filezilla-project.org/download.php 2. Luati primul fisier de la Windows ( în caz ca ai Windows ) sau luati primul fisier de la Linux ( în caz ca ai Linux ) 3. Il instalati si dupa deschideti FilleZilla ! Va arata cam asa :http://i.imgur.com/MVJuX.png 4. Dupa apasam pe butonul Conecteaza Rapid or Connect ! 5. Intram în Service44/samp03 .Acum putem Uploada Serverul : http://i.imgur.com/1G6Ma.png http://i.imgur.com/XBVRe.png 6. Va duceti unde ati salvat serverul si copiati pas cu pas fisierele ( FilerScripts , GameModes , ScriptFiles , Plugins , server.cfg , samp.ban ) .http://i.imgur.com/5Ijn7.png 7. Atentie pluginurile din Server.cfg trebuie sa aiba extensia .so , adaugati bind ip serverului în server.cfg , pentru a functiona corect serverul 8. Intrati în FTP-ul firmei de host , va logati , si dati un Restart la server apasând butonul Restart. [glow=red,2,300]Acest tutorial este pentru încep?tori! [/glow]
  12. Uite : 1. Trebuie sa downloadati FilleZilla de aici : http://filezilla-project.org/download.php 2. Luati primul fisier de la Windows ( In caz ca ai Windows ) , Luati primul fisier de la Linux ( In Caz Ca ai Linux ) ! 3. Il Instalati si dupa deschideti FilleZilla ! 4. Introduce-ti parola , user , ip de la host ! 5. Dupa apasam pe butonul Conecteaza Rapid or Connect ! 6. Intram in Service44/samp03 . Acum Putem Uploada Serverul 7. Va duceti unde ati salvat serverul si copiati pas cu pas fisierele ( FilerScripts , GameModes , ScriptFiles , Plugins , server.cfg , samp.ban ) . 8. Pluginurile din Server.cfg trebuie sa aiba extensia .so , adaugati bind ip serverului in server.cfg , pentru a functiona corect serverul !! 9. Intrati in FTP-ul firmei de host , va logati , si dati un Restart la server apasand butonul Restart ! Sper sa te-am ajutat
  13. Sunt 2 obiecte nu unu... Trebuie adaugat si cel pentru caciula . De aia tie nu-ti apare. Inlucuieste asa : SetPlayerAttachedObject(playerid, 4, 19065, 2, 0.120000, 0.040000, -0.003500, 0, 100, 100, 1.4, 1.4, 1.4); PS : slot 3 e ocupat de la zapada. trebuie altu, baga asa cu 4
  14. Da scz am gresit ca m-am grabit . Da este mai mult pentru serverele RP / GF
  15. Posteaza si comanda de Caciula
  16. /etilotest - Vezi daca playeriul a baut. if (strcmp(cmd, "/etilotest" true) == 0) { if(IsPlayerConnected(playerid)) { if (IsACop(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /etilotest [playerid/PartOfName]"); return 1; } giveplayerid = ReturnUser(tmp); new level = GetPlayerDrunkLevel(giveplayerid); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if(GetDistanceBetweenPlayers(playerid,giveplayerid) < 3) { if(level > 600) { format(string, sizeof(string), "* %s grabs their breathalyzer and puts the tube into %s's mouth.", sendername ,giveplayer); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SendClientMessage(playerid, COLOR_LIGHTBLUE, "** Breathalyzer Result: Intoxicated **"); GameTextForPlayer(playerid,"~w~This player is~n~~r~Drunk", 8000, 1); return 1; } else { format(string, sizeof(string), "* %s grabs their breathalyzer and puts the tube into %s's mouth.", sendername ,giveplayer); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SendClientMessage(playerid, COLOR_LIGHTBLUE, "** Breathalyzer Result: Not Intoxicated **"); GameTextForPlayer(playerid,"~w~This player is~n~~r~Not Drunk", 8000, 1); return 1; } } } } else { SendClientMessage(playerid, COLOR_GRAD1, " This player is offline !"); } } else { SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use this command! (Cops Only)"); } } return 1; }
  17. Coordonatele le afli asa intri in game Te duci unde vrei sa pui casa si dai /save iar dupa te duci in Documents - GTA San Andreas User Files - SAMP- Iar dupa vei gasi un fisier savedpositions il deschizi si acolo le ai . Daca nu ai inteles ceva lasa un reply
  18. Ai asta in GM ?Daca nu o ai puneo forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
  19. if(!strcmp(cmdtext, "/pdgate", true)) { if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) { if (IsPlayerInRangeOfPoint(playerid, 15,1588.3129,-1638.4406,13.3761)) { MoveObject(pdgate ,1589.09997559,-1638.00000000,7.80000038,3.5); SetTimerEx("pdgateclose",3 * 1000,false,"d",playerid); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s a deschis poarta la Police Departament garaj *", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else { SendClientMessage(playerid, COLOR_GREY,"*Nu te aflii in preajma portii !"); return 1; } } return 1; } Uite un MODEL complet . Sper sa te ajute PS:Modifici tu comanda daca vrei alta.
  20. reinstaleaza GTA-ul si o sa merga ca asa am patit si eu
×
×
  • 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.