31.07.2012, 04:50
pawn Код:
#include <fly>
new bool:IsFlying[MAX_PLAYERS] = false;
CMD:fly(playerid, params[])
{
if (PlayerInfo[playerid][pAdmin] < 2) return SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
if(IsFlying[playerid] == false)
{
StartFly(playerid);
IsFlying(playerid) = true;
}
else
{
StopFly(playerid);
IsFlying[playerid] = false;
}
return 1;
}