[Tutorial] Simple Flip Command
#1

Hello Guys , I want to show you how to make Simple Flip Command
Code:
if (strcmp("/flip", cmdtext, true, 10) == 0)
	{
	if(IsPlayerInAnyVehicle(playerid))
	{
	    new currentveh;
	    new Float:angle;
	    currentveh = GetPlayerVehicleID(playerid);
	    GetVehicleZAngle(currentveh, angle);
	    SetVehicleZAngle(currentveh, angle);
	    SendClientMessage(playerid, 0x99FFFFAA, "Your vehicle has been flipped.");
	    return 1;
	}
	else
	{
	 SendClientMessage(playerid, 0xAA3333AA, "You are not in any vehicle!");
	 return 1;
	}
	}
	return 0;
}
Thats it Thanks
Reply


Messages In This Thread
Simple Flip Command - by Nanjaya - 13.07.2013, 14:26
Re: Simple Flip Command - by dannyk0ed - 13.07.2013, 14:32
Re: Simple Flip Command - by Sellize - 13.07.2013, 14:33
Respuesta: Simple Flip Command - by PHudson - 13.07.2013, 14:33
Re: Simple Flip Command - by JaKe Elite - 14.07.2013, 01:46
Re: Simple Flip Command - by Red_Dragon. - 14.07.2013, 02:42
Re: Simple Flip Command - by mahardika - 15.07.2013, 05:52
Re: Simple Flip Command - by SwisherSweet - 15.07.2013, 06:12
Re: Simple Flip Command - by Champ - 15.07.2013, 18:15

Forum Jump:


Users browsing this thread: 2 Guest(s)