06.01.2011, 15:48
This should work better.
"new tuners = 562||565||559||560||558||561;" won't work you must give that variable one value. You cant say it is 562 or 568 ...
pawn Код:
switch(dialogid)
{
case 1226:
{
if(!response)
{
SendClientMessage(playerid, 0xFF0000FF, "You cancelled.");
return 1;
}
switch(listitem)
{
case 0:
{
if(IsTuner(GetVehicleModel(vehicleid)))
{
ShowPlayerDialog(playerid,1240,DIALOG_STYLE_LIST,"Spoilers","Spoiler Pro\nSpoiler Win\nSpoiler Drag\nSpoiler Alpha\nSpoiler Race\nSpoiler Worx","Ok", "Cancel");
return 1;
}
else SendClientMessage(playerid,COLOR_DARKORANGE,"You have to be in a Tuner");
}
}
}
}
stock IsTuner(modelid)
{
switch(modelid)
{
case 562, 565, 559
560, 558, 561:return true;
}
return false;
}