making an cmd
#4

I think doing
pawn Код:
public OnPlayerCommandText(playerid,cmdtext)
{
    if(strcmp(/flip,cmdtext,true) == 0)
    {
       new Float:X, Float:Y, Float:Z;
       new vehicleid = GetPlaverVehicleID(playerid);
       GetVehiclePos(vehicleid,X,Y,Z);
       SetVehiclePos(vehicleid,X,Y,Z);
       SendClientMessage(playerid, /*insert colour here*/, "You have flipped your vehicle");
       return 1;
    }
    return 1;
}
would do the trick. NOTE: UNTESTED!!!
Reply


Messages In This Thread
making an cmd - by Dj_maryo1993 - 11.02.2010, 18:02
Re: making an cmd - by Correlli - 11.02.2010, 18:02
Re: making an cmd - by Dj_maryo1993 - 11.02.2010, 18:05
Re: making an cmd - by biltong - 11.02.2010, 18:16
Re: making an cmd - by Correlli - 11.02.2010, 18:18
Re: making an cmd - by biltong - 11.02.2010, 18:23

Forum Jump:


Users browsing this thread: 2 Guest(s)