if(strcmp(cmd, "/laptop", true) == 0)
{
if(PlayerInfo[playerid][pLaptop] == 1)
{
new otext[20];
if(LaptopInc[playerid] == 0) { otext = "On"; }
else if(LaptopInc[playerid] == 1) { otext = "OFF"; }
ShowPlayerDialog(playerid,Dialog_Laptop,DIALOG_STYLE_LIST,"Laptop","1 Laptop: %s\n","Selecteaza","Inchide");
}
else
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Mergi la 24/7 si cumparati un Laptop !");
}
return true;
}
if(strcmp(cmd, "/laptop", true) == 0)
{
if(PlayerInfo[playerid][pLaptop] == 1)
{
new otext[20];
if(LaptopInc[playerid] == 1) { otext = "On"; }
else if(LaptopInc[playerid] == 0) { otext = "OFF"; }
ShowPlayerDialog(playerid,Dialog_Laptop,DIALOG_STYLE_LIST,"Laptop","1 Laptop: %s\n","Selecteaza","Inchide");
}
else
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Mergi la 24/7 si cumparati un Laptop !");
}
return true;
}
}
pawn Код:
|
if(strcmp(cmd, "/laptop", true) == 0)
{
if(PlayerInfo[playerid][pLaptop] == 1)
{
new otext[20], string[20];
if(LaptopInc[playerid] == 0) { otext = "On"; }
else if(LaptopInc[playerid] == 1) { otext = "OFF"; }
format(string, sizeof(string), "Laptop: %s\n", otext);
ShowPlayerDialog(playerid,Dialog_Laptop,DIALOG_STYLE_LIST,"Laptop",string,"Selecteaza","Inchide");
}
else
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Mergi la 24/7 si cumparati un Laptop !");
}
return true;
}