/aduty and ahacks help
#1

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.
Reply
#2

Anyone know about this?
Reply
#3

You want the admin skin?


skin ID 217
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)