ExTazZ[] Posted February 20, 2018 Posted February 20, 2018 Salut, astazi o sa va arat cum sa faceti comanda [/flymode]. Comanda este. CMD:flymode(playerid, params[]) { if(PlayerInfo[playerid][pWantedLevel] > 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "{CC0033}Nu poti folosi aceasta comanda daca ai wanted."); if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pYoutuber] == 1) { new sendername[30],string[256]; if(flymode[playerid] == 0) { GetPlayerName(playerid, sendername, sizeof(sendername)); flymode[playerid] = 1; format(string,sizeof(string),"%s is now in flymode.", sendername); InitFly(playerid); StartFly(playerid); SetPlayerHealthEx(playerid, INFINITY); } else { GetPlayerName(playerid, sendername, sizeof(sendername)); flymode[playerid] = 0; format(string,sizeof(string),"%s has stopped flymode.", sendername); StopFly(playerid); SetPlayerHealthEx(playerid, 100); SetPlayerHealth(playerid, 100); } ABroadCast(COLOR_YELLOW,string,1); } else return SendClientMessage(playerid, COLOR_DARKNICERED, AdminOnly); } return 1; }
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now