24.09.2013, 21:12
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:
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.
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;
}
Regards,
Pablo.