Jump to content

keNN.

Membru
  • Posts

    146
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by keNN.

  1. 10 hours ago, WeeD.FTS said:

    Acest gamemode nu este bigzone edit?

    Este cel bigzone dar versiunea veche care a aparut acum un an .

    17 hours ago, s4uriK said:

    Salut, am revenit cu un alt gamemode, fostul ruleplay.ro

    Gamemode Saint Network
    Factiuni Dinamice
    Case dinamice
    Biz-uri dinamice
    DS dinamic
     
    Factiuni
     
    1.Los Santos Police Department    
    2.National Guard    
    3.Hitman Agency
    4.FBI    
    5.News Reporters
    6.Taxi LV    
    7.Grove Street    
    8.Ballas    
    9.The Russian Mafia    
    10.Los Vagos    
    11.Los Aztecas    
    12.School Instructors LV    
    13.Paramedic Department    
    14.The Rifa    
    15.Las Venturas Police Department    
    16.Taxi LS    
     
    Joburi
     
    1. Detective
    2. Drugs Dealer
    3. Pizza Boy
    4. Bus Driver
    5. Mechanic
    6. Arms Dealer
    7. Garbage
    8. Fisherman
    9. Trucker
    10. Farmer
     
     crd s4urik
     
    GAMEMODE-UL DETINE BUGURI MICI , DACA NU STITI SA LE REPARATI (AJUTOR SERVER SAU REPLAY)
     
    Nu ma contactati pe conturi personale sa reparati buguri
     
    Pe viitor poate o sa pun si un panel compatibil cu gm-ul
    Gamemode-ul Ruleaza pe MYSQ

    Cateva imagini: http://imgur.com/a/KtLp6

     

    Link download: http://www.fileshare.ro/5.03027147241E+16

    Baza din folder nici nu are factiunile pe care le enumeri aici.

  2. 10 hours ago, adiqua said:

    Salut , As vrea si eu o comanda /ban sa poti da ban pe zile si permanent multumesc!

    Poftim: 

    CMD:ban(playerid, params[]) {
    	if(playerVariables[playerid][pAdminLevel] >= 1) {
    	    new
    	        playerBanID,
    	        days,
    	        string[256],
    	        playerBanReason[60];
    
    	    if(sscanf(params, "uis[60]", playerBanID,days, playerBanReason))
    	    	return SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/ban [playerid] [days: 0 - permanently / max 999 days] [reason]");
    
    	    if(IsPlayerConnected(playerBanID))
    	    {
    		    if(playerVariables[playerBanID][pAdminLevel] >= 1)
    				return SendClientMessage(playerid, COLOR_GREY, "You can't ban an administrator.");
    
    
    			new aString[384];
    
    			if(days == 0)
    			{
    				playerVariables[playerBanID][pBanned] = 1;
    
    		       	format(aString, sizeof(aString), "Ban: %s has been permanent banned by %s, reason: %s", playerVariables[playerBanID][pNormalName], playerVariables[playerid][pNormalName], playerBanReason);
    		       	SendClientMessageToAll(COLOR_LIGHTRED, aString);
    		       	mysql_real_escape_string(aString, aString);
    		       	adminLog(aString);
    				format(szMessage, sizeof(szMessage), "INSERT INTO lastpunish (text, playerID) VALUES ('%s', '%d')", aString,playerVariables[playerBanID][pInternalID]);
    				mysql_tquery(handle,szMessage);
    		       	format(aString, sizeof(aString), "INSERT INTO bans (playerNameBanned, playerBannedBy, playerBanReason) VALUES('%s', '%s', '%s')", playerVariables[playerBanID][pNormalName], playerVariables[playerid][pNormalName], playerBanReason);
    				mysql_tquery(handle,aString);
    				SetTimerEx("kick2", 1000, 0, "d", playerBanID);
    			}
    			else if((days >= 1) && (days <= 999))
    			{
    
    				new File:tempban = fopen("TempBans.ban", io_append);
    		        if(tempban)
    		        {
    		                new year,month,day;
    		                getdate(year, month, day);
    		                day += days;
    		                if (IsMonth31(month))
    		                {
    		                    if (day > 31)
    		                    {
    		                        month += 1;
    		                        if (month > 12)
    		                        {
    		                            year += 1;
    		                            while(day > 31) day -= 31;
    		                        }
    		                        else while(day > 31) day -= 31;
    		                    }
    		                }
    		                else if (!IsMonth31(month))
    		                {
    		                    if (day > 30)
    		                    {
    		                        month += 1;
    		                        if (month > 12)
    		                        {
    		                            year += 1;
    		                            while(day > 30) day -= 30;
    		                        }
    		                        else while(day > 30) day -= 30;
    		                    }
    		                }
    		                else if (!IsMonth31(month) && IsMonth29(year) && month == 2)
    		                {
    		                    if (day > 29)
    		                    {
    		                        month += 1;
    		                        if (month > 12)
    		                        {
    		                            year += 1;
    		                            while(day > 29) day -= 29;
    		                        }
    		                        else while(day > 29) day -= 29;
    		                    }
    		                }
    		                else if (!IsMonth31(month) && !IsMonth29(year) && month == 2)
    		                {
    		                    if (day > 28)
    		                    {
    		                        month += 1;
    		                        if (month > 12)
    		                        {
    		                            year += 1;
    		                            while(day > 28) day -= 28;
    		                        }
    		                        else while(day > 28) day -= 28;
    		                    }
    		                }
    		        }
    				format(string, sizeof(string), "Ban: %s has been banned by %s for %d days, reason: %s",playerVariables[playerBanID][pNormalName], playerVariables[playerid][pNormalName], days, playerBanReason);
    				SendClientMessageToAll(COLOR_LIGHTRED, string);
    				adminLog(string);
    
    				new str[128];
    				format(str,128,"UPDATE `playeraccounts` SET `playerBanDays`='%d' WHERE `playerName`='%s'",days*24,playerVariables[playerBanID][pNormalName]);
    				mysql_tquery(handle, str);
    
    				format(szMessage, sizeof(szMessage), "INSERT INTO lastpunish (text, playerID) VALUES ('%s', '%d')", string,playerVariables[playerBanID][pInternalID]);
    				mysql_tquery(handle,szMessage);
    				SCM(playerBanID,-1,"Ai fost banat temporar de catre un admin!");
    		        SetTimerEx("kick2", 1000, 0, "d", playerBanID);
    			}
    			else
    			{
    				SCM(playerid,-1,"Invalid amount of days");
    			}
    	    }
    	}
    	else return SendClientMessage(playerid, COLOR_WHITE, AdminOnly);
    	return 1;
    }

     

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