Command /flip
#5

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/flip", true) == 0)
    {
        new currentveh;//Create a new variable
        new Float:angle;//Create a new variable
        currentveh = GetPlayerVehicleID(playerid);//Insert into variable
        GetVehicleZAngle(currentveh, angle);//Get the vehicleZAngle of currentveh with value angle
        SetVehicleZAngle(currentveh, angle);//Set the vehicleZAngle of currentveh with value angle
        SendClientMessage(playerid, 0xFFFFFFFF, "Your vehicle has been flipped.");//Send a client massage to the command user
        return 1;
    }
     return 0;
}
Like that?
Reply


Messages In This Thread
Command /flip - by Shadoww5 - 05.07.2011, 22:15
Re: Command /flip - by Lorenc_ - 05.07.2011, 23:08
Re: Command /flip - by HayZatic - 05.07.2011, 23:11
Re: Command /flip - by Shadoww5 - 06.07.2011, 01:30
Re: Command /flip - by =WoR=Varth - 06.07.2011, 01:37
Re: Command /flip - by Shadoww5 - 06.07.2011, 02:19
Re: Command /flip - by =WoR=Varth - 06.07.2011, 02:27
Re: Command /flip - by CyNiC - 06.07.2011, 02:30
Re: Command /flip - by Shadoww5 - 06.07.2011, 02:45
Re: Command /flip - by Larry123 - 14.08.2011, 19:35

Forum Jump:


Users browsing this thread: 1 Guest(s)