Sziasztok,erre a parancsra azt irja ki a szerver,hogy: SERVER:UNKOWN COMMAND..mi lehet a gond ??
if(strcmp(cmd, \"/adhp\", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
Msg(playerid,\"/adhp [JátékosID/NévRészlet] [health]\");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new playa;
new Float:health;
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
health = floatstr(tmp);
if(IsScripter(playerid)) return playa = playerid;
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
if(PlayerInfo[playerid][pAdmin] >= 4)
{
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
if(health <= 2000)
{
new Float:hp;
GetPlayerHealth(playa, hp);
SetHealth(playa, health);
format(string, sizeof(string), \"FIGYELEM!!!! Admin %s életet adott neki: %s - Régi: %1.f - Új: %1.f FIGYELEM!!!\", AdminName(playerid), giveplayer, hp, health);
if(!IsScripter(playerid))
ABroadCast(COLOR_LIGHTRED, string, 1);
}
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, \"* Nem-nem...\");
}
}
return 1;
}