Detaljan opis problema: nece izbacit za krivu komandu sve sam napravio kako treba al nesto nece
Dio skripte:
public OnPlayerCommandPerformed(playerid,cmdtext[ ],success)
{
if(PlayerInfo < 1 && ACCmd == 1)
{
SCM(playerid, -1, ""ORANGE"* "SIVA"Komande mozete koristiti svake 3 sekunde.");
return 0;
}
SetTimerEx("CmdOpet", 2000, false, "i", playerid);
ACCmd = 1;
if (isnull(cmdtext))
{
return 0;
}
if(!success)
{
PlayerPlaySound(playerid,1055,0.0,0.0,0.0);
TDHFP(playerid,PogresnaCMD);
TDHFP(playerid,PogresnaCMD);
TDSFP(playerid,PogresnaCMD);
TDSFP(playerid,PogresnaCMD);
SetTimerEx("MicanjeCMD",4000, false, "i", playerid);
}
new string; format(string,sizeof(string),"Igrac %s | Komanda: %s",GetName(playerid),cmdtext); LogKomandi(string);
return 1;
} PogresnaCMD = TextDrawCreate(492.000000, 378.000000, "_");
TextDrawBackgroundColor(PogresnaCMD, 255);
TextDrawFont(PogresnaCMD, 1);
TextDrawLetterSize(PogresnaCMD, 0.449999, 1.000000);
TextDrawColor(PogresnaCMD, -1);
TextDrawSetOutline(PogresnaCMD, 0);
TextDrawSetProportional(PogresnaCMD, 1);
TextDrawSetShadow(PogresnaCMD, 1);
TextDrawUseBox(PogresnaCMD, 1);
TextDrawBoxColor(PogresnaCMD, 50);
TextDrawTextSize(PogresnaCMD, 147.000000, 0.000000);
TextDrawSetSelectable(PogresnaCMD, 0);
PogresnaCMD = TextDrawCreate(157.000000, 376.000000, "~r~~h~(!)~w~ upisali ste pogresnu komandu koristite ~y~/komande");
TextDrawBackgroundColor(PogresnaCMD, 255);
TextDrawFont(PogresnaCMD, 2);
TextDrawLetterSize(PogresnaCMD, 0.280000, 1.300000);
TextDrawColor(PogresnaCMD, -1);
TextDrawSetOutline(PogresnaCMD, 0);
TextDrawSetProportional(PogresnaCMD, 1);
TextDrawSetShadow(PogresnaCMD, 0);
TextDrawSetSelectable(PogresnaCMD, 0);