12.03.2016, 19:40
Guys I added to / aduty that made me a user in this forum, and I added that when I do I cmd adds the jetpack, but when I take the jetpack banna me because there anticheat how can I do?
Script:
CMD:aduty(playerid, params[])
{
if(PlayerInfo[playerid][pAdminLevel] < 1) return SendClientMessage(playerid, COLOR_RED, "Solo gli admin +1 possono utilizzare questo comando.");
if(PlayerInfo[playerid][pAdminLevel] >= 1 && IsOnduty{playerid} == 0)
{
IsOnduty{playerid} = 1;
SetPlayerHealth(playerid,9999999.0);
SetPlayerArmour(playerid,9999999.0);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK);
}
else if( IsOnduty{playerid} == 1)
{
IsOnduty{playerid} = 0;
ResetPlayerWeapons(playerid);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
}
return 1;
}
Script:
CMD:aduty(playerid, params[])
{
if(PlayerInfo[playerid][pAdminLevel] < 1) return SendClientMessage(playerid, COLOR_RED, "Solo gli admin +1 possono utilizzare questo comando.");
if(PlayerInfo[playerid][pAdminLevel] >= 1 && IsOnduty{playerid} == 0)
{
IsOnduty{playerid} = 1;
SetPlayerHealth(playerid,9999999.0);
SetPlayerArmour(playerid,9999999.0);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK);
}
else if( IsOnduty{playerid} == 1)
{
IsOnduty{playerid} = 0;
ResetPlayerWeapons(playerid);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
}
return 1;
}