SA-MP Forums Archive
[Ajuda] como ficaria esse comando em zcmd - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] como ficaria esse comando em zcmd (/showthread.php?tid=362851)



como ficaria esse comando em zcmd - Math3us - 25.07.2012

pawn Код:
if(strcmp(cmdtext, "/flip", true) == 0)
{
    new Float:X, Float:Y, Float:Z;
    if(IsPlayerInAnyVehicle(playerid))
    {
        SetCameraBehindPlayer(playerid);
        GetPlayerPos(playerid, X, Y, Z);
        SetVehiclePos(GetPlayerVehicleID(playerid), X, Y, Z);
        SetVehicleZAngle(GetPlayerVehicleID(playerid), 0);
    }
    return 1;
}
pf '-'


Re: como ficaria esse comando em zcmd - Jason` - 25.07.2012

pawn Код:
CMD:flip(playerid)
{
    new Float:X, Float:Y, Float:Z;
    if(IsPlayerInAnyVehicle(playerid))
    {
        SetCameraBehindPlayer(playerid);
        GetPlayerPos(playerid, X, Y, Z);
        SetVehiclePos(GetPlayerVehicleID(playerid), X, Y, Z);
        SetVehicleZAngle(GetPlayerVehicleID(playerid), 0);
    }
    return 1;
}



Re: como ficaria esse comando em zcmd - Math3us - 25.07.2012

valew

ajudo muito +repu