• Welcome to Vice City Multiplayer.
 

flip command

Started by tato, April 03, 2011, 06:11:11 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tato

how to do !flip command to flip my car !!





<!-- Facebook Badge START --><a href="http://es-es.facebook.com/eduardoeslindo" target="_TOP" style="font-family: &quot;lucida grande&quot;,tahoma,verdana,arial,sans-serif; font-size: 11px; font-variant: normal; font-style: normal; font-weight: normal; color: #3B5998; text-decoration: none;" title="Eduardo Estrada">Eduardo Estrada</a><br/><a href="http://es-es.facebook.com/eduardoeslindo" target="_TOP" title="Eduardo Estrada"><img src="http://badge.facebook.com/badge/697470158.6069.1979465113.png" width="120" height="272" style="b

BIG[H]

only in Squirrel and Mirc :P Possible :P !!
My Guru FORUM MUST VISITmegavcmp.freeforums.org

BIG[H] = BIG HaLL

[AoD]NC

You use the SetCarPosition thing and use THE SAME COORDS (so you need to get them via a GetCarPosition or something like that). So it won't teleport you, but your car will be flipped :).

BIG[H]

lol i don't understand any thing!
My Guru FORUM MUST VISITmegavcmp.freeforums.org

BIG[H] = BIG HaLL

cycu

Quote from: BIG[H] on April 03, 2011, 12:33:13 PM
lol i don't understand any thing!

if (strcmp(cmdtext, "flip", true) == 0)
{
    new Float:x, Float:y, Float:z;
    new pvehicle = GetPlayerVehicleID(playerid);
   
    GetVehiclePos(pvehicle, x, y, z);
   
    if(!IsPlayerInVehicle(playerid, pvehicle))
    {
            SendClientMessage(playerid, 0xFFFFFFAA, "You're not in vehicle!");
}
else
{
  SetVehiclePos(pvehicle, x, y, z, 0.0);
        SendClientMessage(playerid, 0xFFFFFFAA, "Your vehicle has been fliped.");
}
return 1;
}


However it won't work(tried) did little research - making your car flip in samp is done by SetVehicleZAngle(vehicleid, angle);
and vcmp does not have this function  >:(
      

tato

Quote from: cycu on April 03, 2011, 02:50:27 PM
Quote from: BIG[H] on April 03, 2011, 12:33:13 PM
lol i don't understand any thing!

if (strcmp(cmdtext, "flip", true) == 0)
{
    new Float:x, Float:y, Float:z;
    new pvehicle = GetPlayerVehicleID(playerid);
   
    GetVehiclePos(pvehicle, x, y, z);
   
    if(!IsPlayerInVehicle(playerid, pvehicle))
    {
            SendClientMessage(playerid, 0xFFFFFFAA, "You're not in vehicle!");
}
else
{
  SetVehiclePos(pvehicle, x, y, z, 0.0);
        SendClientMessage(playerid, 0xFFFFFFAA, "Your vehicle has been fliped.");
}
return 1;
}


However it won't work(tried) did little research - making your car flip in samp is done by SetVehicleZAngle(vehicleid, angle);
and vcmp does not have this function  >:(
      
they have but i don't know what i need to do thanks !!





<!-- Facebook Badge START --><a href="http://es-es.facebook.com/eduardoeslindo" target="_TOP" style="font-family: &quot;lucida grande&quot;,tahoma,verdana,arial,sans-serif; font-size: 11px; font-variant: normal; font-style: normal; font-weight: normal; color: #3B5998; text-decoration: none;" title="Eduardo Estrada">Eduardo Estrada</a><br/><a href="http://es-es.facebook.com/eduardoeslindo" target="_TOP" title="Eduardo Estrada"><img src="http://badge.facebook.com/badge/697470158.6069.1979465113.png" width="120" height="272" style="b

[SUK]vivamexico

Yo tengo esa weba de !flip y no es asi  ;)

tato

Quote from: [SUK]vivamexico on April 04, 2011, 02:38:47 PM
Yo tengo esa weba de !flip y no es asi  ;)
no lees alli k dice k no sirve pue :P





<!-- Facebook Badge START --><a href="http://es-es.facebook.com/eduardoeslindo" target="_TOP" style="font-family: &quot;lucida grande&quot;,tahoma,verdana,arial,sans-serif; font-size: 11px; font-variant: normal; font-style: normal; font-weight: normal; color: #3B5998; text-decoration: none;" title="Eduardo Estrada">Eduardo Estrada</a><br/><a href="http://es-es.facebook.com/eduardoeslindo" target="_TOP" title="Eduardo Estrada"><img src="http://badge.facebook.com/badge/697470158.6069.1979465113.png" width="120" height="272" style="b