24.08.2013, 23:38
Code do meu FS
pawn Код:
#include <a_samp>
#include <HidNat>
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/notebook", cmdtext, true, 0) == 0)
{
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Notebook System - by:Victor_Nascimento", "Compras Online", "Selecionar", "Fazer Logoff");
return 1;
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 3) // ID DO DIALOG QUE TEM QUE SER RESPONDIDO, NO CASO O "Notebook System"
{
if(response)
{
if(listitem == 0) // Botгo COMPRAS ONLINE
{
ShowPlayerDialog(playerid, 4, DIALOG_STYLE_LIST, "Notebook - Compras Online", "Vida\nColete\nArmas", "Selecionar", "Fazer Logoff");
return 1;
}
if(dialogid == 4)
{
if(response)
{
if(listitem == 0)
{
GivePlayerHealth(playerid, 100.0);
}
else if(listitem == 1)
{
GivePlayerArmour(playerid, 100.0);
return 1;
}
}
}
return 0;
}
#endif