[FS] /buyscore
In Sistem de vot IPB scris de: bubulino  27/3/2020, 4:49 pm

In FgDesign România scris de: Emanuel  24/3/2020, 1:59 pm

In Tema Infinigame [punbb] scris de: Emanuel  24/3/2020, 11:36 am

In Categorie Protejata scris de: ♥ мιнαιѕυρρσят ♥  30/11/2019, 10:19 pm

In [punbb] Tema InvizionVirus scris de: pariuriz  21/1/2019, 10:51 pm

In Leis setat de BuLLeT scris de: Offline  19/1/2019, 5:07 pm

In RPG.PLAYES.RO, WE MAKE THE DIFFERENCE! scris de: Andro  30/12/2018, 11:14 pm


 » ONLINE » Grand Theft Auto » FilterScript » 


1[FS] /buyscore Empty [FS] /buyscore la data de 18/2/2012, 12:33 pm

Emanuel

Emanuel
Fondator
Fondator
Multumiri primite : 448
Mesaje scrise : 6639
Data de inscriere : 08/07/2011
Varsta : 2
Puncte obtinute : 11139
100%
#include <a_samp>
#define DIALOG_1

main()
{
print("\n----------------------------------");
print(" Fs By KiLLeRZone Incarcat!");
print("----------------------------------\n");
}


public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/buyscore", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"BUY SCORE -> KiLLeRZoNe","1.1000 score -> 1000$\n2.2000 score -> 2000$\n3.3000 score -> 3000$\n4.4000 score -> 4000$\n5.5000 score -> 5000$","Buy","Close");
return 1;
}
return 0;
}


public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1)
{
if(response)
{
if(listitem == 0)
{
if(GetPlayerMoney(playerid) < -1000)
SendClientMessage(playerid,0x0000FFAA,"Ai Nevoie de 1000$");
SetPlayerScore(playerid,1000);
}
if(listitem == 1)
{
if(GetPlayerMoney(playerid) < -2000)
SendClientMessage(playerid,0x0000FFAA,"Ai Nevoie de 2000$");
SetPlayerScore(playerid,2000);
}
if(listitem == 2)
{
if(GetPlayerMoney(playerid)< -3000)
SendClientMessage(playerid,0x0000FFAA,"Ai Nevoie de 3000$");
SetPlayerScore(playerid,3000);
}
if(listitem == 3)
{
if(GetPlayerMoney(playerid) < -4000)
SendClientMessage(playerid,0x0000FFAA,"Ai Nevoie de 4000$");
SetPlayerScore(playerid,4000);
}
if(listitem == 4)
{
if(GetPlayerMoney(playerid) < -5000)
SendClientMessage(playerid,0x0000FFAA,"Ai Nevoie de 4000$");
SetPlayerScore(playerid,5000);
}
}
else
{
SendClientMessage(playerid,0x0000FFAA,"Ai apasat pe CLOSE");
}
}

return 1;
}

Vezi subiectul anterior Vezi subiectul urmator Sus  Mesaj [Pagina 1 din 1]