Jump to content

CokeJR.

Membru
  • Posts

    182
  • Joined

  • Last visited

    Never

Posts posted by CokeJR.

  1. Ia incearca-l pe asta :

    if(strcmp(cmd, "/adminduty", true) == 0)
    	{
    		if(PlayerInfo[playerid][pAdmin] >= 1)
    		{
     			if(JustAD[playerid] == 1)
    	        {
    	            SendClientMessage(playerid, COLOR_GREY, "*** Asteapta 6 minute pentru a putea folosi aceasta comanda! {55D4FF}/adminduty");
    	            return 1;
    	        }
    		    if(AdminDuty[playerid] == 1)
    		    {
    		    	JustAD[playerid] = 1;
    		    	SetTimerEx("ReportAD", 300000, false, "i", playerid);
    		    	GetPlayerName(playerid,sendername,sizeof(sendername));
    			    format(string, sizeof(string), "[Admin Info] %s [ID:%d] is no longer on duty as an admin.", sendername,playerid);
    				SendClientMessageToAll(COLOR_ADMINDUTY,string);
    				SetPlayerToTeamColor(playerid);
    				AdminDuty[playerid] = 0;
    				SetPlayerHealth(playerid,100);
    				SetPlayerArmour(playerid,0);
    
    			}
    		    else
    		    {
    		    	GetPlayerName(playerid,sendername,sizeof(sendername));
    		    	format(string, sizeof(string), "[Admin Info] %s [ID:%d] is now on duty as an admin.Please /w him if you need help.", sendername,playerid);
    				SendClientMessageToAll(COLOR_ADMINDUTY,string);
    				AdminDuty[playerid] = 1;
    				SetPlayerColor(playerid,COLOR_ADMINDUTY);
    				SetPlayerHealth(playerid,99999);
    				SetPlayerArmour(playerid,99999);
    		    }
    		}
    		else
    		{
    			SendClientMessage(playerid, COLOR_GREY, "{55D4FF}EROARE:{FF0000} You are not authorized to use that command");
    		}
    		return 1;
    	}

  2. . M-am dus la banca si am vazut k e in proprietatea cuiva(si mai multe lucruri au proprietari). 
    *As vrea sa stiu cum pot sa fac sa nu mai aiba proprietar!
    Te duci pe proprietatea respectiva dai /edit [level,price] exemplu /edit level 1 si mai un sus iti va aparea id-ul la biz,sau casa depinde ce vrei sa vinzi si dai /asellbiz si id sau /asellsbiz id la case dai /asellhouse id.!
    Checkpointurile de la case nu imi apar pe harta.
    *Ce sa fac sa apara.
    Nustiu exact schimba streamerul.
    .Si inca cv. Am editat niste cuvinte si numele la sv din gamemod si apoi am dat complie si mia dat urmatoarea eroare:
    Linia 15 arata asa in gamemode #include <utils>

    adauga in pawno/include utils.inc descarca-l de aici : http://search.4shared.com/postDownload/iBdgFSKf/utils.html

  3. Un mic tutorial creat de mine.

    Pentru a adauga o melodie cand va conectati pe server procedam in felul urmator:

    Mergem la OnPlayerConnect

    Si adaugam

    PlayAudioStreamForPlayer(playerid, "Link-ul nostru catre melodie");
    Exemplu
    PlayAudioStreamForPlayer(playerid, "http://gta-cp.info/sounds/Godfather.mp3");
    Iar daca doriti sa-se opreasca melodia dupa spawn procedam asa : Mergem la OnPlayerSpawn Si adaugam
    StopAudioStreamForPlayer(playerid);

    Stiu ca este destul de simplu dar sunt incepator :P

  4. Salut la toti am incercat sa fac cand intri pe SV inainte sa te loghezi ,sa cante o melodie.

    Bun am pus la OnPlayerConnect

    PlayAudioStreamForPlayer(playerid, "http://samp.dreamservers.ro/music/The%20Godfather%20Theme.mp3");
    iar la OnPlayerSpawn
    StopAudioStreamFor(player);
    Si imi da eroare la copilare ..
    undefined symbol "StopAudioStreamFor"
    ps am pus #define StopAudioStreamFor Se copileaza
    dar imi da expression has no effect

    intru pe server incepe melodia dar nu se opreste,canta pana la sfarsit .. ?

  5. Pune altu.:))

    if(strcmp(cmd, "/makeadmin", true) == 0)
    	{
    	    if(IsPlayerConnected(playerid))
    	    {
    			tmp = strtok(cmdtext, idx);
    			if(!strlen(tmp))
    			{
    				SendClientMessage(playerid, COLOR_GRAD2, "{55D4FF}SCRIE:{B4B4B4} /makeadmin [playerid/PartOfName] [level(1-1339)]");
    				return 1;
    			}
    			new para1;
    			new level;
    			para1 = ReturnUser(tmp);
    			tmp = strtok(cmdtext, idx);
    			level = strval(tmp);
    			if (PlayerInfo[playerid][pAdmin] >= 1338)
    			{
    			    if(IsPlayerConnected(para1))
    			    {
    			        if(para1 != INVALID_PLAYER_ID)
    			        {
    						GetPlayerName(para1, giveplayer, sizeof(giveplayer));
    						GetPlayerName(playerid, sendername, sizeof(sendername));
    						PlayerInfo[para1][pAdmin] = level;
    						printf("AdmCmd: %s a fost promovat de %s la admin level %d .", sendername, giveplayer, level);
    						format(string, sizeof(string), "   Tu ai fost promovat la admin %d de catre Administratorul %s", level, sendername);
    						SendClientMessage(para1, COLOR_LIGHTBLUE, string);
    						format(string, sizeof(string), "   Tu ai promovat pe %s la admin level %d .", giveplayer,level);
    						SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    						format(string, sizeof(string), "Level admin %d by admin %s to %s", level, sendername, giveplayer);
    						SendAdminMessage(COLOR_ADMIN, string);
    					}
    				}
    			}
    			else
    			{
    				SendClientMessage(playerid, COLOR_RED, "   Tu nu esti autorizat pentru a folosi aceasta comanda!");
    			}
    		}
    		return 1;
    	}

  6. }
    dcmd_rset(playerid,params[])
    {
    	if(PlayerInfo[playerid][pAdmin] >= 3)
    	{
    		new text[128], cash;
    		if(sscanf(params,"si",text,cash))return SendClientMessage(playerid,COLOR_WHITE,"{55D4FF}SCRIE:{B4B4B4} /rset [text] [premiul]");
    		if(strlen(text) > 50) return SendClientMessage(playerid,COLOR_WHITE,"EROARE: Maxim 25 de caractere sunt permise.");
    		if(cash < 1 || cash > 100000) return SendClientMessage(playerid,COLOR_WHITE,"EROARE: Premiul trebuie sa fie cuprins intre 1$ - 100.000$.");
    		format(ReactionString,sizeof(ReactionString),"%s",text);
    		ReactionCash = cash;
    		PassiveMode = PASSIVE_ON;
    		ReactionTest();
    	}
    	return 1;
    	}

    Adauga-l in gm,tastezi /rset si iti dai seama.

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