Jump to content

SpriteTV

Membru
  • Posts

    65
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by SpriteTV

  1. La 08.08.2018 la 20:14, SkillZ_IT. a spus:

    Vand 9 euro pe clever-host.ro pe 5 euro skrill / paysafe / paypal.

    sunt prea prosti aia de la clever host am astepta pentru host 3 zile nici nu til creaza automat. macar.

    Nu recomand firma de host.

    X-HOST imd dupa finalizare primiti si host-ul cu tot cu baza de date. respect.

     

  2. Acum 21 minute, AlexxAdv a spus:

    Scrie pe google, panel by speedy, iei tot ce tine de change mail, checkmail, php mailer etc si le inlocuiesti cu ale tale, vor fi sanse mari sa iti mearga

    Nu merge. :((

     

  3. Acum 20 minute, VLM a spus:

    Mai simplu decat sa pui giftboxactiv pe 1, si poti sa il stergi.

    Pui comanda pe x , y , z , adica sa fii intr-o anumita locatie pentru a putea folosii comanda.

    Exemplu:

    
    CMD:getgift(playerid, params[])
    {
    	if(IsPlayerConnected(playerid))
    	{
    		if(IsPlayerInRangeOfPoint(playerid, 15.0, 1270.4071, -1348.4037, 13.1547))
     	    {
        		if(PlayerInfo[playerid][pConnectTime] <= 2) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need 3 hours to use /getgift.");
         		if(PlayerInfo[playerid][pGiftTime] > 0)
          		{
           			new string[128];
             		format(string,sizeof(string),"Mai poti folosi aceasta comanda peste %d ore.",PlayerInfo[playerid][pGiftTime]);
           			SendClientMessage(playerid, COLOR_YELLOW, string);
             		return 1;
    			}
    			if(IsPlayerInRangeOfPoint(playerid, 15.0, 1270.4071, -1348.4037, 13.1547))
    			{

    Dupa care te duci la Create3DTextLabel si adaugi:

    
    	Create3DTextLabel("{FFFF00}Nume{FFFFFF} GiftBox\n {FFFF00}/getgift {FFFFFF}to get a gift.",0xFFFFFFFF,1270.4071, -1348.4037, 13.1547,25.0,0);

    Dupa te duci la "//LINII MASINI" si deasupra adaugi:

    
    	//getgift
    	CreateObject(19056, 1270.4071, -1348.4037, 13.1547,   0.00000, 0.00000, 0.00000);

    Acum inlocui coordonatele 1270.4071, -1348.4037, 13.1547 cu ce coordonate vrei tu.

    ms

     

    • Like 1
  4. Acum 4 minute, AlexxAdv a spus:

    Deoarece ai new GiftBoxActiv = 0; presupun pune-l pe 1, new GiftBoxActiv = 1; si asa va fi activat mereu.

    if(GiftBoxActiv < 1) uite aici.
    		    {
    		        GiftPosX = X;
    		        GiftPosY = Y;
    		        GiftPosZ = Z;
    		        giftboxobject = CreateDynamicObject(19056, X, Y, Z - 0.4, 0.0, 0.0, A);
    		        giftbox3DText = CreateStreamed3DTextLabel("ROPLAYERS.ro Giftbox\nUse /getgift to get a gift",0xA9C4E4CC,X,Y,Z+0.25,8.0,0);
    		    	SendClientMessage(playerid, COLOR_YELLOW, "Ai activat giftbox.");
    		    	PremiumMaxim = 5;
    		    	GiftBoxActiv = 1;
    			}
    			else
    			{
    			    DestroyDynamicObject(giftboxobject);
                	DestroyDynamic3DTextLabel(giftbox3DText);
    		    	SendClientMessage(playerid, COLOR_YELLOW, "Ai dezactivat gifbox.");
    		    	PremiumMaxim = 0;
    		    	GiftBoxActiv = 0;
    			}
    		}

     

     

    pai este pus boss

  5. Salut dragi jucatori de sa-mp.

    Am si eu o problema cu gift box-ul

    Dupa ce activez giftbox-ul nu ramane salvat dupa ce ies dupa server si trebuie sa-l activez iara.

    Si nu stiu cum pot rezolva chestia asta.

    CMD:giftbox(playerid, params[])
    {
        if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
    	if(IsPlayerConnected(playerid))
     	{
     	    if(PlayerInfo[playerid][pAdmin] >= 7)
    		{
    		    if(IsPlayerInAnyVehicle(playerid)) return 1;
    		    new Float:X,Float:Y,Float:Z,Float:A;
    		    GetPlayerPos(playerid, X, Y, Z);
    		    GetPlayerFacingAngle(playerid, A);
    		    if(GiftBoxActiv < 1)
    		    {
    		        GiftPosX = X;
    		        GiftPosY = Y;
    		        GiftPosZ = Z;
    		        giftboxobject = CreateDynamicObject(19056, X, Y, Z - 0.4, 0.0, 0.0, A);
    		        giftbox3DText = CreateStreamed3DTextLabel("ROPLAYERS.ro Giftbox\nUse /getgift to get a gift",0xA9C4E4CC,X,Y,Z+0.25,8.0,0);
    		    	SendClientMessage(playerid, COLOR_YELLOW, "Ai activat giftbox.");
    		    	PremiumMaxim = 5;
    		    	GiftBoxActiv = 1;
    			}
    			else
    			{
    			    DestroyDynamicObject(giftboxobject);
                	DestroyDynamic3DTextLabel(giftbox3DText);
    		    	SendClientMessage(playerid, COLOR_YELLOW, "Ai dezactivat gifbox.");
    		    	PremiumMaxim = 0;
    		    	GiftBoxActiv = 0;
    			}
    		}
    		else
    		{
    			SendClientMessage(playerid, COLOR_ERROR, AdminOnly);
    		}
    	}
    	return 1;
    }

    Ma poate ajuta careva? 

    if(randgift >= 141)
    				{
    				    PlayerInfo[playerid][pHiddenColor] += 1;
    				    Update(playerid, pHiddenColorx);
                        ShowPlayerDialog(playerid, DIALOG_GIFTBOX, DIALOG_STYLE_MSGBOX, "Premiu Giftbox", "Ai primit o culoare hidden.", "OK", "");
    			    	format(string,sizeof(string),"(( Giftbox: %s a castigat o culoare hidden din giftbox! Felicitari! ))",sendername);
    				}
    				if(randgift == 30 || randgift == 60 || randgift == 90 || randgift == 110 || randgift == 140)
    				{
    				    if(PremiumMaxim > 0)
    				    {
    				    	new randpoints = 15 + random(25);
    				    	PlayerInfo[playerid][pPremiumPoints] += randpoints;
    				    	Update(playerid, pPremiumPointsx);
    				    	PremiumMaxim -= 1;
    				    	format(string,sizeof(string),"Ai primit %d puncte premium.",randpoints);
    			    		ShowPlayerDialog(playerid, DIALOG_GIFTBOX, DIALOG_STYLE_MSGBOX, "Premiu Giftbox", string, "OK", "");
    			    		format(string,sizeof(string),"(( Giftbox: %s a castigat %d puncte premium din giftbox! Felicitari! ))",sendername, randpoints);
    					}
    					else
    					{
                            new randmoney = 4000000 + random(1000000);
    					    GivePlayerCash(playerid, randmoney);
    					    Update(playerid, pCashx);
    					    format(string,sizeof(string),"Ai primit $%s.",FormatNumber(randmoney));
    				    	ShowPlayerDialog(playerid, DIALOG_GIFTBOX, DIALOG_STYLE_MSGBOX, "Premiu Giftbox", string, "OK", "");
                            format(string,sizeof(string),"(( Giftbox: %s a castigat $%s din giftbox! Felicitari! ))",sendername,FormatNumber(randmoney));
    					}
    				}
    				new y,m,d,h,mi,s;
        			getdate(y,m,d);
        			gettime(h,mi,s);
    				PlayerInfo[playerid][pGiftTime] += 5;
    				SendClientMessageToAll(COLOR_GENANNOUNCE,string);
    				Update(playerid, pGiftTimex);
    				mysql_format(SQL, string, sizeof(string), "INSERT INTO giftbox_logs (`text`,`PlayerID`,`time`) VALUES ('%s','%d','%02d/%02d/%d %02d:%02d:%02d')", string, PlayerInfo[playerid][pSQLID],d,m,y,h,mi,s);
    				mysql_tquery(SQL,string,"","");
    			}
    			else
    			{
    			    SendClientMessage(playerid, COLOR_WHITE, "Nu esti langa giftbox.");
    			    SendClientMessage(playerid, COLOR_YELLOW, "Mergi la checkpoint-ul de pe minimap pentru a ajunge la giftbox!");
    			    SetPlayerCheckpoint(playerid,GiftPosX,GiftPosY,GiftPosZ,5.0);
    			    return 1;
    			}
    		}
    		else return SendClientMessage(playerid, COLOR_WHITE, "The giftbox is not active.");
    	}

     

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