Jump to content

Neculai

Membru
  • Posts

    63
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Neculai

  1. Lasal pe el. Tu adu dovezi cum ca acest script este al tau, iar topicul va fi sters.

     

    Cat despre script mai mergea aranjat putin.

    Mdea pacat adica mnha eu stiu ca nu am dat un simplu copy+paste stiu ca eu l-am facut singur de la 0 eu am aranjat txd-urile tot deci mda..

    +ca serios tu cu gura ta ai spus " Frate sunt pe forum deja de mult timp dar nu postam nimik " deci de unde sa il "fur" daca nici nu ai postat?=)))

     

    Si cam ce ar mai trebuie aranjat Gireada?sunt deschis la sfaturi

  2. rog un moderato sa dea t/c ( Copy+Pase ) e facut de mine :| frate pastreaza creditele :|

    Cum sa fie we copiat :| tu nu vezi ca sti nou pe forum mancarimea asta de rahat e debea primul post .... uite  de asta lumea prefera .com ca aici postezi si tu cv frumos si vin tot felul de nimeni si manaca bors...

    si daca tot esti tu asa de sigur ca e al tau dc nu o dovedesti (infara sa copii acest fs si sa schimbi cateva nume)

  3. Am facut si eu un mic FS cu un sistem de radio mai altfel :)

     

    poza:

    icQgHt4.png

    #include <a_samp>
    new Text:titlu;
    new Text:inainte;
    new Text:inapoi;
    new Text:chitara;
    new string[69];
    
    new RadioP[MAX_PLAYERS];
    new Radio[5][] =
    {
           			"http://somafm.com/tags.pls",
           			"http://stream.profm.ro:8012/profm.mp3",
           			 "http://www.radiogmusic.com/rock.m3u",
           			"http://www.radiomafia.ro/listen.m3u",
    				"http://s4.radiohost.pl:8154/listen.pls"
    
    
    };
    new Tit[5][] =
    {
    		"Soma FM",
    		"Pro FM",
    		"Radio Rock",
    		"Radio Mafia",
    		"Radio Dubstep"
    };
    public OnFilterScriptInit()
    {
            
    
            titlu = TextDrawCreate(298.000000, 49.000000, "titlu");
            TextDrawAlignment(titlu, 2);
            TextDrawBackgroundColor(titlu, 255);
            TextDrawFont(titlu, 1);
            TextDrawLetterSize(titlu, 0.500000, 1.799999);
            TextDrawColor(titlu, -1);
            TextDrawSetOutline(titlu, 0);
            TextDrawSetProportional(titlu, 1);
            TextDrawSetShadow(titlu, 1);
            TextDrawUseBox(titlu, 1);
            TextDrawBoxColor(titlu, 101058123);
            TextDrawTextSize(titlu, 423.000000, -197.000000);
    
            inainte = TextDrawCreate(395.000000, 50.000000, ">");
            TextDrawAlignment(inainte, 2);
            TextDrawBackgroundColor(inainte, 255);
            TextDrawFont(inainte, 2);
            TextDrawLetterSize(inainte, 0.700000, 3.000000);
            TextDrawColor(inainte, -1);
            TextDrawSetOutline(inainte, 0);
            TextDrawSetProportional(inainte, 1);
            TextDrawSetShadow(inainte, 1);
    
            inapoi = TextDrawCreate(202.000000, 50.000000, "<");
            TextDrawAlignment(inapoi, 2);
            TextDrawBackgroundColor(inapoi, 255);
            TextDrawFont(inapoi, 2);
            TextDrawLetterSize(inapoi, 0.700000, 3.000000);
            TextDrawColor(inapoi, -1);
            TextDrawSetOutline(inapoi, 0);
            TextDrawSetProportional(inapoi, 1);
            TextDrawSetShadow(inapoi, 1);
    
            chitara = TextDrawCreate(247.000000, -6.000000, "chitara");
    		TextDrawBackgroundColor(chitara, 0);
    		TextDrawFont(chitara, 5);
    		TextDrawLetterSize(chitara, 0.500000, 9.800000);
    		TextDrawColor(chitara, -1);
    		TextDrawSetOutline(chitara, 0);
    		TextDrawSetProportional(chitara, 1);
    		TextDrawSetShadow(chitara, 1);
    		TextDrawUseBox(chitara, 1);
    		TextDrawBoxColor(chitara, 0);
    		TextDrawTextSize(chitara, 132.000000, 60.000000);
    		TextDrawSetPreviewModel( chitara, 19317);
    		TextDrawSetPreviewRot( chitara, 0.000000, -35.000000, 180.000000, 1.000000);
    		TextDrawSetSelectable(chitara, 1);
    
            TextDrawSetSelectable(titlu, false);
            TextDrawSetSelectable(inainte, true);
            TextDrawSetSelectable(inapoi, true);
            TextDrawSetSelectable(chitara, true);
            return 1;
    }
    
    public OnFilterScriptExit()
    {
            TextDrawDestroy(titlu);
            TextDrawDestroy(inainte);
            TextDrawDestroy(inapoi);
            TextDrawDestroy(chitara);
            return 1;
    }
    
    public OnPlayerCommandText(playerid, cmdtext[])
    {
            if (!strcmp("/radio", cmdtext, true))
            {
                TextDrawShowForPlayer(playerid, titlu);
                TextDrawShowForPlayer(playerid, inainte);
                TextDrawShowForPlayer(playerid, inapoi);
                TextDrawShowForPlayer(playerid, chitara);
                SelectTextDraw(playerid, 0xA3B4C5FF);
                RadioP[playerid]=0;
    		    format(string,sizeof(string),"%s",Tit[RadioP[playerid]]);
    		    TextDrawSetString(titlu,string);
    		    TextDrawShowForPlayer(playerid,titlu);
    			return 1;
            }
            return 0;
    }
    
    public OnPlayerClickTextDraw(playerid, Text:clickedid)
    {
            if(_:clickedid != 65535)
            {
             	if(clickedid == inapoi)
                    {
    					if(RadioP[playerid] == 0) RadioP[playerid]=5;
                             	RadioP[playerid]-=1;
    				         	format(string,sizeof(string),"%s",Tit[RadioP[playerid]]);
    						 	TextDrawSetString(titlu,string);
    						 	TextDrawShowForPlayer(playerid,titlu);
    						 	PlayAudioStreamForPlayer(playerid,Radio[RadioP[playerid]]);
    
                    }
    			if(clickedid == inainte)
                    {
                        if(RadioP[playerid] == 4) RadioP[playerid]=-1;
                           	 RadioP[playerid]+=1;
    				         format(string,sizeof(string),"%s",Tit[RadioP[playerid]]);
    						 TextDrawSetString(titlu,string);
    						 TextDrawShowForPlayer(playerid,titlu);
    						 PlayAudioStreamForPlayer(playerid,Radio[RadioP[playerid]]);
    						 
                    }
    			if(clickedid == chitara)
    				{
    				    StopAudioStreamForPlayer(playerid);
    				}
                    
                    
    
    
            }
            return 1;
    }
    public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
    {
    	if (newkeys & KEY_YES)
    	{
    	    TextDrawHideForPlayer(playerid, titlu);
            TextDrawHideForPlayer(playerid, inainte);
            TextDrawHideForPlayer(playerid, inapoi);
            TextDrawHideForPlayer(playerid, chitara);
            CancelSelectTextDraw(playerid);
    	}
    	return 1;
    }
    
    
    
  4. Santa [2] CreatePickup(19058, 2, 172.8487,3961.3682,3.9757); aici cred ca ar trebui un egal

    Santa [2]= CreatePickup(19058, 2, 172.8487,3961.3682,3.9757);

     

     

    si asta ShowPlayerDialog(playerid, 2, DIALOG_STYLE_MSGBOX, "{FFFF00AA}Santa {FFFFFFAA}- Mini Events", "Text", "Close", ""); la ce foloseste?

  5. Salut SA-MP ro am revenit cu un mic si f f f simplu fs anume unul care colinzi playerii 

    new colinda;
    new suma;
    new IDC[MAX_PLAYERS];
    new IDT;
    
    
    CMD:acolinda(playerid,params[])
    {
    	new stringC[128];
    	if(sscanf(params, "u", suma)) return SendClientMessage(playerid, 0xFF0000AA, "USAGE: /acolinda [suma]");
    	if(colinda == 0) return SendClientMessage(playerid,-1,"Nimeni nu vrea sa te colinde");
    	else
    	{
    	format(stringC, sizeof(stringC), "a acceptat colinda");
    	SendPlayerMessageToPlayer(IDT,playerid,stringC);
    	PlayAudioStreamForPlayer(IDT,"http://k003.kiwi6.com/hotlink/y1sudszr8h/Jingle_Bell_Rock-_Lyrics.mp3");
    	GivePlayerMoney(IDT,-20);
    	
    	}
    	return 1;
    }
    CMD:colinda(playerid,params[])
    {
        new stringC[128];
        GetPlayerName(playerid, IDC, sizeof(IDC));
        if(sscanf(params, "u", IDT)) return SendClientMessage(playerid, 0xFF0000AA, "USAGE: /colinda [ID]");
    	if(!IsPlayerConnected(IDT)) return SendClientMessage(playerid, -1, "Playerul nu este conectat !");
    	if(IDT[playerid] == playerid) return  SendClientMessage(playerid, -1, "Nu poti sa te colinzi singur");
    	else
    	{
    	format(stringC, sizeof(stringC), "vrea sa te colinde");
    	SendPlayerMessageToPlayer(IDT,playerid,stringC);
    	colinda=1;
    	}
    	
     	return 1;
    }
    
    

    Imi cer scuze daca e putin haotic sper sa va placa si sunt deschis la sugestii :)

    • Upvote 2
  6. Problema intalnita (descriere):am comanda /setlevel dar cand dai cuiva admin se inchide serverul
    Ero(area / rile) / warning-(ul / urile):0
    Liniile de cod / sursa / script-ul:

    CMD:setlevel( playerid, params[ ] )
    {
    	gsString[ 0 ] = EOS;
    
    	if ( !IsPlayerAdmin( playerid ) && PlayerInfo[ playerid ][ rAdmin ] != 1 )
    		return SendError( playerid, "You have to been logged in as RCON Admin to use this command!" );
    
    	new
    		Player,
    		aLevel
    	;
    	if ( sscanf( params, "ui", Player, aLevel ) )
    		return SendClientMessage( playerid, COLOR_ULTRARED, "USAGE: {33CCFF}/setlevel [PlayerID] [Level]" );
    
    	if ( !IsPlayerConnected( Player ) && Player == INVALID_PLAYER_ID )
    		return SendError( playerid, "Player not connected!" );
    
    	if ( PlayerInfo[ Player ][ LoggedIn ] == 0 )
    		return SendError( playerid, "Player must be registered and logged in!" );
    
    	if ( aLevel > 10 )
    		return SendError( playerid, "Incorrect Level" );
    
    	if ( aLevel == PlayerInfo[ Player ][ Level ] )
    		return SendError( playerid, "Player is already have this level" );
    
        if ( aLevel > 0 )
    		format( gsString, sizeof( gsString ), "Administrator %s has set you to administrator status [Level: %d]", PlayerName( playerid ), aLevel );
        else
    		format( gsString, sizeof( gsString ), "Administrator %s has set you to player status [Level: %d]", PlayerName( playerid ), aLevel );
    
    	SendClientMessage( Player, COLOR_ABLUE, gsString );
    
        if ( aLevel > PlayerInfo[ Player ][ Level ] )
    		Announce( Player, "~g~Promoted!", 2000, 3 );
        else
    		Announce( Player,"~r~Demoted", 2000, 3 );
    
        FormatMSG( playerid, COLOR_ABLUE, "You have made %s Level %d on %s", PlayerName( Player ), aLevel, zDate( ) );
    
        format( gsString, sizeof( gsString ),"Administrator %s has made %s Level %d", PlayerName( playerid ), PlayerName( Player ), aLevel );
        SaveToFile( "AdminLog", gsString );
        PlayerInfo[ Player ][ Level ] = aLevel;
    
        PlayerPlaySound( Player, 1057, 0.0, 0.0, 0.0 );
        return 1;
    }
    

    Imagini / Video (optional):-
    Ati incercat sa rezolvati singur?:Da am incercat

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