I can assure you that this will work. Also fully indented your codes, took me about 5-10 minutes. But this should do it instead of just posting random possible things like Delux13.
pawn Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case 1:
{
if(!response)
{
SendClientMessage(playerid, COLOR_RED, "You cancelled!");
return 1;
}
switch(listitem)
{
case 0:
{
SetPlayerHealth(playerid, 0);
SendClientMessage(playerid, COLOR_RED, "You chose to commit suicide");
}
case 1:
{
SetPlayerHealth(playerid, 0);
ForceClassSelection(playerid);
}
case 2:
{
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, COLOR_GREEN, "You chose to heal yourself");
}
case 3:
{
SetPlayerHealth(playerid, 100000);
SendClientMessage(playerid, COLOR_YELLOW, "You chose to become invincible");
}
case 4:
{
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
SetVehicleHealth(vehicleid, 100000);
SendClientMessage(playerid, COLOR_YELLOW, "You chose for your car to be invincible");
}
case 5:
{
SendClientMessage(playerid, COLOR_YELLOW, "-------------------Help Center-------------------");
SendClientMessage(playerid, COLOR_TAN, "Type /cmds for a list of commands");
SendClientMessage(playerid, COLOR_TAN, "You can sign up for our clan on the forums");
SendClientMessage(playerid, COLOR_TAN, "www.driftingvenom.tk");
SendClientMessage(playerid, COLOR_TAN, "You can apply for unban, and ban on our forums");
SendClientMessage(playerid, COLOR_TAN, "You can apply for Admin on our forums");
SendClientMessage(playerid, COLOR_TAN, "You can ask anyone for a drift battle on our forums");
SendClientMessage(playerid, COLOR_YELLOW, "-------------------Help Center-------------------");
}
case 6:
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, "Repair Failed: You must be in a vehicle to repair it");
RepairVehicle(GetPlayerVehicleID(playerid));
SendClientMessage(playerid, COLOR_GREEN, "You chose to repair your vehicle");
}
case 7:
{
if(countspam[playerid]==0)
{
SetTimer("Five", 1000, 0);
SetTimer("Four", 2000, 0);
SetTimer("Three", 3000, 0);
SetTimer("Two", 4000, 0);
SetTimer("One", 5000, 0);
SetTimer("GoGoGo", 6000, 0);
countspam[playerid]=1;
SetTimer("countspam2",10000,0);
}
else
{
SendClientMessage(playerid,COLOR_BLUE, "Please wait before using this Command again.");
}
}
}
}
case 2:
{
if(response) return SendClientMessage(playerid, COLOR_RED, "You Agreed with the rules, Enjoy your stay!");
if(!response)
{
SendClientMessage(playerid, COLOR_RED, "You Disagree with the rules, therefore you were kicked");
Kick(playerid);
return 1;
}
}
}
return 0;
}