25.11.2013, 17:10
This is how to get gas can, I'm saving it to veriable or w/e it is 
doesn't != 1 means If it's not 1 it will send msg...
but when I buy it on gas station it should change to 1 and this msg should gone..

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_GASCAN)
{
if(response)
{
if(listitem == 0) // Small size gas can
{
GCS[playerid] = 1;
SendClientMessage(playerid, COLOR_RED,"{00FF00}INFO: {FFFFFF}You bought small size gas can, use {FF6A22}/usegc {FFFFFF}to refill your vehicle");
}
if(listitem == 1) // Medium size gas can
{
GCM[playerid] = 1;
SendClientMessage(playerid, COLOR_RED,"{00FF00}INFO: {FFFFFF}You bought medium size gas can, use {FF6A22}/usegc {FFFFFF}to refill your vehicle");
}
if(listitem == 2) // Big size gas can
{
GCB[playerid] = 1;
SendClientMessage(playerid, COLOR_RED,"{00FF00}INFO: {FFFFFF}You bought big size gas can, use {FF6A22}/usegc {FFFFFF}to refill your vehicle");
}
}
return 1;
}
return 0;
}
but when I buy it on gas station it should change to 1 and this msg should gone..

