29.07.2012, 12:23
Change it to this one
And don't double post
pawn Код:
// Let the player use a jetpack
COMMAND:fly(playerid, params[])
{
// Send the command to all admins so they can see it
SendAdminText(playerid, "/fly", params);
// Check if the player has logged in
if (APlayerData[playerid][LoggedIn] == true)
{
// Check if the player's admin-level is at least 1
if (APlayerData[playerid][PlayerLevel] >= 1)
{
// Equip the player with a jetpack
SetPlayerSpecialAction(playerid, 2);
}
else
return 0;
}
else
return 0;
// Let the server know that this was a valid command
return 1;
}