if(strcmp(cmd, \"/carresi\", true) == 0) //
{
if (Admin(playerid, 1) || PlayerInfo[playerid][pHelper] >= 1 || PlayerInfo[playerid][orokas] >= 1)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, \"{0285FF}HASZNÁLAT:{FFFFFF} /carresi [mennyi idõ múlva?(3-60)]\");
return 1;
}
new countdowns = strval(tmp);
if(countdowns > 60 || countdowns < 3) return SendClientMessage(playerid, COLOR_GREY,\"* Az idõ minimum 3, maximum 60 lehet!\");
if(CountdownRunning == 0)
{
CountdownRunning = 1;
CountdownSeconds = countdowns;
CountdownTimer = SetTimer(\"CarResi\",1000,true);
format(string, sizeof(string),\"~p~CarResi: ~w~%d\",countdowns);
TextDrawSetString(Textdraw46, string);
TextDrawShowForAll(Textdraw46);
}
}
return 1;
}
if(strcmp(cmd, \"/restartcars\", true) == 0) //
{
if(IsPlayerConnected(playerid))
{
if (Admin(playerid, 1) || PlayerInfo[playerid][pHelper] >= 1 || PlayerInfo[playerid][orokas] >= 1)
{
TDUzenet(playerid, \"Nem használhatod a parancsot!\", 5);
return 1;
}
RestartCars();
format(string, sizeof(string), \"AdmCmd: %s CarResizett\", sendername);
ABroadCast(COLOR_LIGHTRED,string, 1);
}
return 1;
}