Jump to content

Mafia.

V.I.P
  • Posts

    792
  • Joined

  • Last visited

  • Days Won

    12

Posts posted by Mafia.

  1. 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. imi ziceti va rog ce scriu la:

    Host:

    Username:

    Password:

    Port:

    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.

  3. 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]

  4. 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

  5. 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

  6. PawnFox" post="127267" timestamp="1356610287"]

    Din cate stiu eu, se spune ETILOTEST  , si nu prea vad la ce e folositoare, e buna pentru serverele RP / GF :D

    Da scz am gresit ca m-am grabit . Da este mai mult pentru serverele RP / GF :D

  7. /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;
    	                    }

  8.    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.

×
×
  • 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.