SA-MP Forums Archive
/flip command ! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /flip command ! (/showthread.php?tid=352029)



/flip command ! - Avi57 - 18.06.2012

Hey,
Can anyone tell me How to Make a /flip command ?
Thanks


Re: /flip command ! - misho1 - 18.06.2012

Try Mine
pawn Код:
YCMD:flip(playerid, params[], help)
            {
            new Float: P[ 4 ];
            if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,RED,"This Player Is Not In Vehicle");
            GetPlayerPos( playerid, P[ 0 ], P[ 1 ], P[ 2 ] );
            GetVehicleZAngle( GetPlayerVehicleID( playerid ) , P[ 3 ]);
            SetVehiclePos( GetPlayerVehicleID( playerid ), P[ 0 ], P[ 1 ], P[ 2 ] );
            SetVehicleZAngle( GetPlayerVehicleID( playerid ), P[ 3 ] );
            SendClientMessage(playerid,GREEN,"Your Vehicle Has Been Fliped!");
            SendClientMessage(playerid,GREEN,"To Flip Player's Vehicle Use /Flipp");
            return 1;
    }
Rep+ If It Worked


Re: /flip command ! - Avi57 - 18.06.2012

i Dont Need in YCMD, ZCMD Or any other !


Re: /flip command ! - misho1 - 18.06.2012

pawn Код:
if (strcmp("/flip", cmdtext, true, 10) == 0)
            {
            new Float: P[ 4 ];
           
            if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,RED,"This Player Is Not In Vehicle");
            GetPlayerPos( playerid, P[ 0 ], P[ 1 ], P[ 2 ] );
            GetVehicleZAngle( GetPlayerVehicleID( playerid ) , P[ 3 ]);
            SetVehiclePos( GetPlayerVehicleID( playerid ), P[ 0 ], P[ 1 ], P[ 2 ] );
            SetVehicleZAngle( GetPlayerVehicleID( playerid ), P[ 3 ] );
            SendClientMessage(playerid,GREEN,"Your Vehicle Has Been Fliped!");
            return 1;
    }



Re: /flip command ! - Avi57 - 18.06.2012

Thx But i Got !


Re: /flip command ! - misho1 - 18.06.2012

You're Welcome
But No Rep++


Re: /flip command ! - JhnzRep - 18.06.2012

Quote:
Originally Posted by misho1
Посмотреть сообщение
But No Rep++
Thanks for the laugh.


Re: /flip command ! - Avi57 - 18.06.2012

ohk
1 for you :P


Re: /flip command ! - misho1 - 18.06.2012

THNX