SA-MP Forums Archive
/aduty and ahacks help - 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: /aduty and ahacks help (/showthread.php?tid=465902)



/aduty and ahacks help - PabloDiCostanzo - 24.09.2013

Greetings,



Hi sa-mp. Well yesterday I was making this simple script and I can not understean why I arround "Left or right", take a look:

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_SPRINT)
    {
        if(gPlayerInfo[playerid][pAdmin] >= 1)
        {
            if(OnDuty[playerid] == true)
            {
                new Float:x,Float:y,Float:z;
                GetPlayerPos(playerid,x,y,z);
                SetPlayerVelocity(playerid, 1.5,1.5,0.3);
                SetPlayerWorldBounds(playerid, 20000.0000, -20000.0000, 20000.0000, -20000.0000);
            }
        }
    }
    return 1;
}
This is my code, and I want just to go in teh section where the skin is looking for. I don`t know if you understeandm e. but if you understeand, please help me with this.

Regards,
Pablo.


Respuesta: /aduty and ahacks help - PabloDiCostanzo - 26.09.2013

Anyone know about this?


Re: /aduty and ahacks help - zrelly - 26.09.2013

You want the admin skin?


skin ID 217


Respuesta: /aduty and ahacks help - PabloDiCostanzo - 26.09.2013

Nono. Look this is a simple script of Admin Hacks, and when the player is
pawn Код:
if(OnDuty[playerid == true)
When he press KEY_SPRINT he can fly, with
pawn Код:
SetPlayerVelocity
The problem is that when he press the KEY_SPRINT, he allways goes to the left, and I want to the skin goes to the place where the skin is looking:
If the skin, is looking forward. He goes forward. If it is looking to the right, he goes right.