21.12.2013, 02:56
pawn Код:
CMD:cheats(playerid)
{
if(PlayerInfo[playerid][pAdmin] >= 1337)
{
new string[256];
new Text[7][4];
if(SuperHydro[playerid] == 1) Text[0] = "ON";
else Text[0] = "OFF";
if(HPGod[playerid] == 1) Text[1] = "ON";
else Text[1] = "OFF";
if(ArmorGod[playerid] == 1) Text[2] = "ON";
else Text[2] = "OFF";
if(CarGod[playerid] == 1) Text[3] = "ON";
else Text[3] = "OFF";
if(AirBreak[playerid] == 1) Text[4] = "ON";
else Text[4] = "OFF";
if(SuperBreak[playerid] == 1) Text[5] = "ON";
else Text[5] = "OFF";
if(InvisMode[playerid] == 1) Text[6] = "ON";
else Text[6] = "OFF";
format(string, sizeof(string), "Super Hydraulics: %s\nUnlimited HP: %s\nUnlimited Armor: %s\nVehicle God Mode: %s\nNoClip: %s\nSuper Breaks: %s\nInvisible Mode: %s", Text[0], Text[1], Text[2], Text[3], Text[4], Text[5], Text[6]);
ShowPlayerDialog(playerid, 121, DIALOG_STYLE_LIST, "{00BFFF}Available Cheats:", string, "Toggle", "Cancel");
return 1;
}
return 1;
}
The textdraw at the bottom wont appear