[Help] Shoot and move
#1

Hi guys, I post today for some help after 1 week of search. In my GameMode when player Scope, They move Slow, and they cant shot while moving. I need help to fix it so player can scope more faster and shoot while moving thanks to everyone who reply. ( All weapon )
Reply
#2

I think SetPlayerSkillLevel is what you're looking for the movement while shooting.
Reply
#3

Код:
		    if(PlayerInfo[playerid][pAdminDuty] == 1 && PlayerInfo[playerid][pAdmin] >= 3)
			{
				SetPlayerSkin(playerid, 294);
				if(PlayerInfo[playerid][pAdmin] >= 6)
				{
					SafeResetPlayerWeapons(playerid);
					SafeGivePlayerWeapon(playerid, 42, 10000);
					SafeGivePlayerWeapon(playerid, 39, 10000);
					SafeGivePlayerWeapon(playerid, 38, 10000);
					SafeGivePlayerWeapon(playerid, 34, 10000);
					SafeGivePlayerWeapon(playerid, 31, 10000);
					SafeGivePlayerWeapon(playerid, 29, 10000);
					SafeGivePlayerWeapon(playerid, 27, 10000);
					SafeGivePlayerWeapon(playerid, 24, 10000);
					SafeGivePlayerWeapon(playerid, 40, 1);
					SafeGivePlayerWeapon(playerid, 10, 1);
					SafeGivePlayerWeapon(playerid, 9, 1);
					SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 10000);
					SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, 10000);
					SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, 10000);
					SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, 10000);
					SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 10000);
					SetPlayerSkillLevel(playerid, WEAPONSKILL_SPAS12_SHOTGUN, 10000);
					SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 10000);
					SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, 10000);
					SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, 10000);
					SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, 10000);
					SetPlayerHealth(playerid, 99999);
					SetPlayerArmour(playerid, 99999);
Everything was 1000 and not 10000 i changed to 10000 to see if it change something but nothing what i need to change
Reply
#4

PS: Sorry for double reply but in /adminduty everything work fine only player can't move while shooting i think i need to turn this code into a player code and not in
Quote:

if(PlayerInfo[playerid][pAdminDuty] == 1 && PlayerInfo[playerid][pAdmin] >= 3

Just tell me how to trun it in player or give me something. Thanks
Reply
#5

10000 is an invalid value.
The max value is 999 which is the best skills for all the weapons, you can shoot & move at the same time.
Try changing all of them to 999.

And what you said about admin thing, has nothing to do with this code:
Код:
if(PlayerInfo[playerid][pAdminDuty] == 1 && PlayerInfo[playerid][pAdmin] >= 3
Reply
#6

I don't know it's write AdminDuty so i think it's the setting only for AdminDuty. And i have put all to 999 but nothing change
Reply
#7

Are you aware only.

pawn Код:
if(PlayerInfo[playerid][pAdmin] >= 6)
Can do this?

Also why repeating the same IF statement with different levels? pointless.

pawn Код:
if(PlayerInfo[playerid][pAdminDuty] == 1 && PlayerInfo[playerid][pAdmin] >= 3)
Reply
#8

I don't think you understand me.
Here I posted it for you:
pawn Код:
if(PlayerInfo[playerid][pAdminDuty] == 1 && PlayerInfo[playerid][pAdmin] >= 3)
{
    SetPlayerSkin(playerid, 294);
        return 1;
}

if(PlayerInfo[playerid][pAdmin] >= 6)
{
    SafeResetPlayerWeapons(playerid);
    SafeGivePlayerWeapon(playerid, 42, 10000);
    SafeGivePlayerWeapon(playerid, 39, 10000);
        SafeGivePlayerWeapon(playerid, 38, 10000);
    SafeGivePlayerWeapon(playerid, 34, 10000);
        SafeGivePlayerWeapon(playerid, 31, 10000);
    SafeGivePlayerWeapon(playerid, 29, 10000);
    SafeGivePlayerWeapon(playerid, 27, 10000);
    SafeGivePlayerWeapon(playerid, 24, 10000);
    SafeGivePlayerWeapon(playerid, 40, 1);
    SafeGivePlayerWeapon(playerid, 10, 1);
    SafeGivePlayerWeapon(playerid, 9, 1);
        //This
    SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 999);
    SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, 999);
    SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, 999);
    SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, 999);
    SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 999);
    SetPlayerSkillLevel(playerid, WEAPONSKILL_SPAS12_SHOTGUN, 999);
    SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 999);
    SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, 999);
    SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, 999);
    SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, 999);
        //
    SetPlayerHealth(playerid, 99999);
    SetPlayerArmour(playerid, 99999);
        return 1;
}
Try this ^

EDIT: Sorry for the indentation, I couldn't fix it.
Reply
#9

So i replace your code by mine ?
Reply
#10

Double post: I think you don't understand this is ADMIN code and not for player
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)