Sziasztok
A gondom az ha beírom az unfreeze parancsot kifagy a szerver
itt a kód
if(strcmp(cmd, \"/unfreeze\", true) == 0)
{
printf(\"%s beírta a /unfreeze parancsot\\r\\n\", PlayerName(playerid));
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, \"Használat: /unfreeze <playerid>\");
return 1;
}
new playa;
playa = ReturnUser(tmp);
if (Info[playerid][admin] >= 1)
{
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerFelengedve(playa, 1);
format(stringx, sizeof(stringx), \"%s elengedte %s\",sendername, rag(giveplayer,3));
printf(\"%s\\r\\n\",stringx);
savelogex(\"log/unfreeze.txt\",stringx);
format(stringx, sizeof(stringx), \"%s felolvasztotta %s\",rag(giveplayer,3) ,sendername);
SendClientMessage(playerid, COLOR_RED, stringx);
SendClientMessage(playa, COLOR_RED, stringx);
Info[playa][ehes] = 6000;
PlayerCuffed[playa] = 0;
PlayerCuffedTime[playa] = 0;
megserult[playa] = 0;
megserult1[playa] = 0;
gyogyulas[playa] = 0;
afktiltva[playerid] = false;
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, \"Nem vagy admin!\");
}
}
return 1;
}
Helpet elõre is köszi.