24.08.2013, 23:42
agora sim
pawn Код:
#include <a_samp>
#include <HidNat>
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
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[]) {
switch ( dialogid ) {
case 3: {
if ( response ) {
switch ( listitem ) {
case 0: ShowPlayerDialog ( playerid, 4, DIALOG_STYLE_LIST, "Notebook - Compras Online", "Vida\nColete\nArmas", "Selecionar", "Fazer Logoff");
}
}
}
case 4: {
if ( response ) {
switch ( listitem ) {
case 0: GivePlayerHealth ( playerid, 100.0 ) ;
case 1: GivePlayerArmour ( playerid, 100.0 ) ;
}
}
}
}
return 0;
}