Jump to content
  • 0

Question

Posted

buna tuturor as vrea si eu scriptul acela /buyvip daca se poate cum e pe rss si cand scrie cineva /buyvip sa ii arete Level 1 50 ore Level 2 80 ore Level 3 120 ore

7 answers to this question

Recommended Posts

Posted

buna tuturor as vrea si eu scriptul acela /buyvip daca se poate cum e pe rss si cand scrie cineva /buyvip sa ii arete Level 1 50 ore Level 2 80 ore Level 3 120 ore

Nu se cer scripturi!!!!

Si nici nu cred ca acel FS e public

Massari e curva mea

Posted

Zi ce vrei sa apara EXACT si ti-l fac eu aici. Nu stiu cum e pe RSS. Cand dai buyvip sa-ti arate preturile la VIP sau ce?

<a href="http://www.userbars.be"><img src="http://img534.imageshack.us/img534/9098/36589.gif" alt="Free userbars" border="0"></a>

Posted

Zi ce vrei sa apara EXACT si ti-l fac eu aici. Nu stiu cum e pe RSS. Cand dai buyvip sa-ti arate preturile la VIP sau ce?

uite aici cand scri /buyvip

Poza Nr 1:

scaled.php?server=80&filename=poza1y.png&res=medium

Dupa ce am apasat da apare:

[img width=500 height=375]http://desmond.imageshack.us/Himg217/scaled.php?server=217&filename=poza2f.png&res=medium

Posted

http://wiki.sa-mp.com/wiki/Strcat

http://wiki.sa-mp.com/wiki/ShowPlayerDialog

http://wiki.sa-mp.com/wiki/OnDialogResponse

Succes  :cool:

communitylogosml.png

94.23.120.101:7778

Posted

Ti l-am facut acum repede fara prima parte cu Textul ca sincer n-am chef sa scriu 15 minute aiurea aia ti-o poti face tu.

Intai si intai adauga la inceput pe langa pAdmin, sau ceva de genu'

pVip,
Pe urma la OnPlayerConnect
PlayerInfo[playerid][pVip] = 0;
Pe urma la OnPlayerRegister
format(var, 32, "VIP=%d\n",PlayerInfo[playerid][pVip]);fwrite(hFile, var);
Pe urma la OnPlayerUpdate
format(var, 32, "VIP=%d\n",PlayerInfo[playerid][pVip]);fwrite(hFile, var);
Pe urma la OnPlayerLogin
if( strcmp( key , "VIP" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pVip] = strval( val ); }
Si tot la OnPlayerLogin
if (PlayerInfo[playerid][pVip] > 0)
		{
			format(string2, sizeof(string2), "Sunteti logat ca VIP %d.",PlayerInfo[playerid][pVip]);
			SendClientMessage(playerid, COLOR_WHITE,string2);
		}
Adauga la OnPlayerCommandText
if (strcmp("/buyvip", cmdtext, true, 10) == 0)
	{
		 ShowPlayerDialog(playerid, DIALOG_WS, DIALOG_STYLE_LIST, "Cumparare VIP", "Level 1 - 140 ORE\nLevel 2 = 200 ORE\nLevel 3 = 300 ORE", "Cumpara", "Quit");
		 return 1;
	}
Pe urma la OnDialogResponse
if(dialogid == DIALOG_WS)
	{
	    if(response)
	    {
            for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(listitem == 0)
					{
						if(PlayerInfo[i][pConnectedTime] >= 140)
                                                  {
                                                     PlayerInfo[i][pVip] == 1;
                                                  }
                                         }
                                 if(listitem == 1)
                                         {
                                                 if(PlayerInfo[i][pConnectedTime] >= 200)
						   {
							PlayerInfo[i][pVip] == 2;
						   }
					  }
				 if(listitem == 2)
                                         {
                                                 if(PlayerInfo[i][pConnectedTime] >= 300)
						   {
							PlayerInfo[i][pVip] == 3;
						   }
					  }
			}
	}
}

Iti mai poti dezvolta comanda punand acolo la OnDialogResponse sub treaba cu pConnectedTime alte treburi de care ai nevoie sa le ai ca sa iei VIP-ul respectiv. Nu am testat nimic am facut comanda si tot intr-un Notepad. BAFTA

<a href="http://www.userbars.be"><img src="http://img534.imageshack.us/img534/9098/36589.gif" alt="Free userbars" border="0"></a>

Guest
This topic is now closed to further replies.
×
×
  • 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.