Jump to content

Mafia.

V.I.P
  • Posts

    792
  • Joined

  • Last visited

  • Days Won

    12

Posts posted by Mafia.

  1. if(strcmp(cmd, "/givesalary", true) == 0)
        {
            if(IsPlayerConnected(playerid))
            {
                if(PlayerInfo[playerid][pAdmin] < 4) return SCM(playerid, COLOR_WHITE, "Nu ai acces!");
                SendClientMessageToAll(0x046C8FFF , "(AdmBot): In acest moment, salariile au fost acordate celor care fac parte dintr-o factiune.");
                new salar[MAX_PLAYERS];
                for(new i = 0; i < MAX_PLAYERS; i++)
                {
                    if(IsPlayerConnected(i))
                    {
                        if(PlayerInfo[playerid][pMember] >= 1 || PlayerInfo[playerid][pLeader] >= 1 && PlayerInfo[playerid][pRank] >= 1)
                        {
                            salar = PlayerInfo[pRank] * 100000;
                            format(string, sizeof(string), "Salariul a sosit! ai primit %s Lei", FormatNumber(salar));
                            SCM(i, COLOR_MONEY, string);
    						GivePlayerCash(i, salar);
                        }
                    }
                }
            }
            return 1;
        }

    Incaraca asa .

  2. La 12/5/2016 la 22:03, CraZZyK1L3R_MD a spus:

    Mai apar versiuni noi? Are multe buguri ca exemplu la joburi etc.

     

    Nu o sa mai apara si alte versiuni

     

    TOPIC CLOSED ( este foarte vechi topicul )

     

    Daca aveti probleme legate de Gamemod postati la "Discuti Scripting"

    PS : Probleme sa fie legat de scripting de ex erori etc !

  3. if (strcmp("/text", cmdtext, true) == 0)
    {
        new objectid = CreateObject(19353, 0, 0, 10, 0.0, 0.0, 90.0); //create the object
        SetObjectMaterialText(objectid, "SA-MP {FFFFFF}0.3{008500}e {FF8200}RC7", 0, OBJECT_MATERIAL_SIZE_256x128,
        "Arial", 28, 0, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
        // write "SA-MP 0.3e RC7" on the object, with orange font color and black background
        return 1;
    }

     uite un ex

  4. CMD:setadmin(playerid, params[])
    {
    	new string1[250]
    	if(PlayerInfo[playerid][pAdmin] = 6)return SendClientMessage(playerid, 0xFF9900AA, "Nu esti administring1ator, nu poti folosi comanda. Simplu.");
    	if(sscanf(params,"ui",ID,levels)) return SendClientMessage(playerid,0xFF9900AA, "FOLOSESTE: /setadmin [Nume sau ID] [Nivel(1-6)]");//it will show this if you dont use the format properly
    	if(levels > 4) return SendClientMessage(playerid,0xFF0000FF,"POTI DA UN NIVEL DE LA 1 LA 6!");//Available levels
    	if(!IsPlayerConnected(ID))return SendClientMessage(playerid,0xFF00000,"Utilizatorul selectat nu este inregistring1at.");//Detect if the id/partofname is connected
    	if(PlayerInfo[ID][pAdmin] == levels) return SendClientMessage(playerid,0xFF0000FF, "EROARE: Persoana selectata are deja acest nivel!");//Detect if the guy is already the level you setted
      	GetPlayerName(playerid,Nam, MAX_PLAYER_NAME);//define the playerid name
       	GetPlayerName(ID,pname,MAX_PLAYER_NAME);//define the other person name
       	if(levels == 0)
       	{
        	format(string1, sizeof(string1),"{FFFFFF}%s {FF0000}ti-a setat nivelul de administring1ator la {FFFFFF}%d{FF0000}.",Nam,levels);
    		SendClientMessage(ID,0xFF9900AA,string1);
     		format(string1, sizeof(string1),"{FF0000}I-ai setat lui {FFFFFF}%s {FF0000}nivelul de administring1ator la {FFFFFF}%d!",pname,levels);
    		SendClientMessage(playerid,0xFF9900AA,string1);
       		PlayerInfo[ID][pAdmin] = levels;//this sets the player level
       		return 1;
    	}
    	format(string1, sizeof(string1),"{FFFFFF}%s {FF0000}ti-a setat nivelul de administring1ator {FFFFFF}%d{FF0000}!",Nam,levels);
    	SendClientMessage(ID,0xFF9900AA,string1);
    	format(string1, sizeof(string1),"{FF0000}I-ai setat lui {FFFFFF}%s {FF0000}nivelul de administring1ator la {FFFFFF}%d{FF0000}!",pname,levels);
    	SendClientMessage(playerid,0xFF9900AA,string1);
    	PlayerInfo[ID][pAdmin] = levels;
    	return 1;
    }

    Incearca asa !

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