Sziasztok.
Van egy kamionos módom, és nemtudom, hogy milehet a baja az egyik parancsomnak... ::|
A Parancs:
COMMAND:healall(playerid, params[])
{
// Send the command to all admins so they can see it
SendAdminText(playerid, \"/healall\", params);
// Check if the player has logged in
if (APlayerData[playerid][LoggedIn] == true)
{
// Check if the player\'s admin-level is at least 3
if (APlayerData[playerid][PlayerLevel] >= 3)
{
// Loop through all players
for (new i; i < MAX_PLAYERS; i++)
if (IsPlayerConnected(i)) // Check if the player is connected
if (IsPlayerInAnyVehicle(i) == 0) // Check if the player isn\'t inside a vehicle
SetPlayerHealth(i, 100.0); // Heal the player
// Send all players a message to inform them that all players have been healed
SendClientMessageToAll(0x00FF00FF, \"All players have been healed!\");
}
else
{
SendClientMessage(playerid, -1, \"Nem vagy elég magas szintű ehez a parancshoz!(3)\");
}
return 0;
}
// Let the server know that this was a valid command
return 1;
}
Ha admin vagyok kiírja, hogy All players have been healed! tehát a parancs jó, viszont utána írja, hogy SERVER: unknown command. Mintha nemismerné fel.. Pedig a gamemodeban van a parancs
Segítsetek