Jump to content
  • 0

Flip


Deejaybwg

Question

8 answers to this question

Recommended Posts

Si unde scriu aia ?

Daca ai LuxAdmin fa asa:

1. CTRL + F.

2. La Search for: scrie "flip" si dai enter, apoi apasa F3 pana ajungi la comanda

3. Dupa secventa asta:

dcmd_flip(playerid, params[])

{

Pune asta:

if(AccInfo[playerid][Level] >= 2 || IsPlayerAdmin(playerid))

{

Sau dai copy-paste la asta(dar tre sa stergi pe prima):

dcmd_flip(playerid,params[])
{
    if(AccInfo[playerid][Level] >= 2 || IsPlayerAdmin(playerid))
	{
	    if(!strlen(params))
		{
		    if(IsPlayerInAnyVehicle(playerid))
			{
			new VehicleID, Float:X, Float:Y, Float:Z, Float:Angle;
			GetPlayerPos(playerid, X, Y, Z);
			VehicleID = GetPlayerVehicleID(playerid);
			GetVehicleZAngle(VehicleID, Angle);
			SetVehiclePos(VehicleID, X, Y, Z);
			SetVehicleZAngle(VehicleID, Angle);
			SetVehicleHealth(VehicleID,1000.0);
			SendCommandToAdmins(playerid,"Flip");
			return SendClientMessage(playerid, green,"|- Vehicle Flipped! -|") &&
			SendClientMessage(playerid, white,"Flip the player's vehicle? (/flip [PlayerID])");
			}
			else return SendClientMessage(playerid,red,"ERROR: You are not in a Vehicle!");
		}
	    new player1, playername[MAX_PLAYER_NAME], adminname[MAX_PLAYER_NAME], string[128];
	    player1 = strval(params);

	 	if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID && player1 != playerid)
		  {
			SendCommandToAdmins(playerid,"Flip");
			if (IsPlayerInAnyVehicle(player1))
			{
				new VehicleID, Float:X, Float:Y, Float:Z, Float:Angle;
				GetPlayerPos(player1, X, Y, Z);
				VehicleID = GetPlayerVehicleID(player1);
				GetVehicleZAngle(VehicleID, Angle);
				SetVehiclePos(VehicleID, X, Y, Z);
				SetVehicleZAngle(VehicleID, Angle);
				SetVehicleHealth(VehicleID,1000.0);
				SendCommandToAdmins(playerid,"Flip");
				GetPlayerName(player1, playername, sizeof(playername));
				GetPlayerName(playerid, adminname, sizeof(adminname));
				format(string,sizeof(string),"|- Administrator %s Flipped your Vehicle -|",adminname);
				SendClientMessage(player1,blue,string);
				format(string,sizeof(string),"You have Flipped %s's Vehicle!", playername);
				return SendClientMessage(playerid, blue,string);
			}
			else return SendClientMessage(playerid,red,"ERROR: This player isn't in a vehicle");
		}
		else return ErrorMessages(playerid, 4);
	}
	else return ErrorMessages(playerid, 1);
}

PS: Daca nu reusesti, vorbim pe mess si te ajut miercuri (sau cand am timp)  :grin:

Stiu ca tu vrei sa ai comanda "/flip" (pentru toata lumea) , iar aia cu "/flip [Player ID]" doar pentru admini...

E simplu.

Edit: Ma rog , înlocuim "/flip [Player ID]" cu "/aflip" ca altfel se suprapun...

Link to comment
Share on other sites

da cum a zis fanex dar daca ai ladmin:

1.Dai Ctrl + F

2.Scrii acolo flip

3.Incocuiesti cu asta:

dcmd_flip(playerid,params[]) {
    if(PlayerInfo[playerid][Level] >= 2 || IsPlayerAdmin(playerid)) {
	    if(!strlen(params)) {
		    if(IsPlayerInAnyVehicle(playerid)) {
			new VehicleID, Float:X, Float:Y, Float:Z, Float:Angle; GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid);
			GetVehicleZAngle(VehicleID, Angle);	SetVehiclePos(VehicleID, X, Y, Z); SetVehicleZAngle(VehicleID, Angle); SetVehicleHealth(VehicleID,1000.0);
			CMDMessageToAdmins(playerid,"FLIP"); return SendClientMessage(playerid, blue,"Vehicle Flipped. You can also do /flip [playerid]");
			} else return SendClientMessage(playerid,red,"Error: You are not in a vehicle. You can also do /flip [playerid]");
		}
	    new player1, playername[MAX_PLAYER_NAME], adminname[MAX_PLAYER_NAME], string[128];
	    player1 = strval(params);

	 	if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID && player1 != playerid) {
			CMDMessageToAdmins(playerid,"FLIP");
			if (IsPlayerInAnyVehicle(player1)) {
				new VehicleID, Float:X, Float:Y, Float:Z, Float:Angle; GetPlayerPos(player1, X, Y, Z); VehicleID = GetPlayerVehicleID(player1);
				GetVehicleZAngle(VehicleID, Angle);	SetVehiclePos(VehicleID, X, Y, Z); SetVehicleZAngle(VehicleID, Angle); SetVehicleHealth(VehicleID,1000.0);
				CMDMessageToAdmins(playerid,"FLIP");
				GetPlayerName(player1, playername, sizeof(playername));		GetPlayerName(playerid, adminname, sizeof(adminname));
				format(string,sizeof(string),"Administrator %s flipped your vehicle",adminname); SendClientMessage(player1,blue,string);
				format(string,sizeof(string),"You have flipped %s's vehicle", playername);
				return SendClientMessage(playerid, blue,string);
			} else return SendClientMessage(playerid,red,"Error: This player isn't in a vehicle");
		} else return SendClientMessage(playerid, red, "Player is not connected or is yourself");
	} else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");
}

Fara reclama in semnatura!

Link to comment
Share on other sites

Daca ai ladmin baga pe asta da strege celalant care il ai

[pawn]dcmd_flip(playerid,params[]) {

    if(PlayerInfo[playerid][Level] >= 2 || IsPlayerAdmin(playerid)) {

    if(!strlen(params)) {

    if(IsPlayerInAnyVehicle(playerid)) {

new VehicleID, Float:X, Float:Y, Float:Z, Float:Angle; GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid);

GetVehicleZAngle(VehicleID, Angle); SetVehiclePos(VehicleID, X, Y, Z); SetVehicleZAngle(VehicleID, Angle); SetVehicleHealth(VehicleID,1000.0);

CMDMessageToAdmins(playerid,"FLIP"); return SendClientMessage(playerid, blue,"Vehicle Flipped. You can also do /flip [playerid]");

} else return SendClientMessage(playerid,red,"Error: You are not in a vehicle. You can also do /flip [playerid]");

}

    new player1, playername[MAX_PLAYER_NAME], adminname[MAX_PLAYER_NAME], string[128];

    player1 = strval(params);

if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID && player1 != playerid) {

CMDMessageToAdmins(playerid,"FLIP");

if (IsPlayerInAnyVehicle(player1)) {

new VehicleID, Float:X, Float:Y, Float:Z, Float:Angle; GetPlayerPos(player1, X, Y, Z); VehicleID = GetPlayerVehicleID(player1);

GetVehicleZAngle(VehicleID, Angle); SetVehiclePos(VehicleID, X, Y, Z); SetVehicleZAngle(VehicleID, Angle); SetVehicleHealth(VehicleID,1000.0);

CMDMessageToAdmins(playerid,"FLIP");

GetPlayerName(player1, playername, sizeof(playername)); GetPlayerName(playerid, adminname, sizeof(adminname));

format(string,sizeof(string),"Administrator %s flipped your vehicle",adminname); SendClientMessage(player1,blue,string);

format(string,sizeof(string),"You have flipped %s's vehicle", playername);

return SendClientMessage(playerid, blue,string);

} else return SendClientMessage(playerid,red,"Error: This player isn't in a vehicle");

} else return SendClientMessage(playerid, red, "Player is not connected or is yourself");

} else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");

}[/pawn]

Link to comment
Share on other sites

Daca ai LuxAdmin fa asa:

1. CTRL + F.

2. La Search for: scrie "flip" si dai enter, apoi apasa F3 pana ajungi la comanda

3. Dupa secventa asta:

dcmd_flip(playerid, params[])

{

Pune asta:

if(AccInfo[playerid][Level] >= 2 || IsPlayerAdmin(playerid))

{

Sau dai copy-paste la asta(dar tre sa stergi pe prima):

dcmd_flip(playerid,params[])
{
    if(AccInfo[playerid][Level] >= 2 || IsPlayerAdmin(playerid))
	{
	    if(!strlen(params))
		{
		    if(IsPlayerInAnyVehicle(playerid))
			{
			new VehicleID, Float:X, Float:Y, Float:Z, Float:Angle;
			GetPlayerPos(playerid, X, Y, Z);
			VehicleID = GetPlayerVehicleID(playerid);
			GetVehicleZAngle(VehicleID, Angle);
			SetVehiclePos(VehicleID, X, Y, Z);
			SetVehicleZAngle(VehicleID, Angle);
			SetVehicleHealth(VehicleID,1000.0);
			SendCommandToAdmins(playerid,"Flip");
			return SendClientMessage(playerid, green,"|- Vehicle Flipped! -|") &&
			SendClientMessage(playerid, white,"Flip the player's vehicle? (/flip [PlayerID])");
			}
			else return SendClientMessage(playerid,red,"ERROR: You are not in a Vehicle!");
		}
	    new player1, playername[MAX_PLAYER_NAME], adminname[MAX_PLAYER_NAME], string[128];
	    player1 = strval(params);

	 	if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID && player1 != playerid)
		  {
			SendCommandToAdmins(playerid,"Flip");
			if (IsPlayerInAnyVehicle(player1))
			{
				new VehicleID, Float:X, Float:Y, Float:Z, Float:Angle;
				GetPlayerPos(player1, X, Y, Z);
				VehicleID = GetPlayerVehicleID(player1);
				GetVehicleZAngle(VehicleID, Angle);
				SetVehiclePos(VehicleID, X, Y, Z);
				SetVehicleZAngle(VehicleID, Angle);
				SetVehicleHealth(VehicleID,1000.0);
				SendCommandToAdmins(playerid,"Flip");
				GetPlayerName(player1, playername, sizeof(playername));
				GetPlayerName(playerid, adminname, sizeof(adminname));
				format(string,sizeof(string),"|- Administrator %s Flipped your Vehicle -|",adminname);
				SendClientMessage(player1,blue,string);
				format(string,sizeof(string),"You have Flipped %s's Vehicle!", playername);
				return SendClientMessage(playerid, blue,string);
			}
			else return SendClientMessage(playerid,red,"ERROR: This player isn't in a vehicle");
		}
		else return ErrorMessages(playerid, 4);
	}
	else return ErrorMessages(playerid, 1);
}

PS: Daca nu reusesti, vorbim pe mess si te ajut miercuri (sau cand am timp)  :grin:

Stiu ca tu vrei sa ai comanda "/flip" (pentru toata lumea) , iar aia cu "/flip [Player ID]" doar pentru admini...

E simplu.

Edit: Ma rog , înlocuim "/flip [Player ID]" cu "/aflip" ca altfel se suprapun...

Am dat CTRL + F "flip" si gaseste doar unde scrie la mine pe server la /cmds scrie /flip acolo.. Altceva nu gaseste..

www.youtube.com/thebwgg

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.