Having a problem setting one handed weapons
#1

I have tried this
Код:
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 1);
And put it under onplayerspawn but you still get the 2 handed pistols...
Reply
#2

Check whether it's used elsewhere in your scripts.
Reply
#3

Nope no where.

Код:
public OnPlayerSpawn(playerid)
{
   	if(PlayerInfo[playerid][pTut] == 0)
	{
	    TogglePlayerControllable(playerid, 0);
		TutTimer = SetTimerEx("ShowTut", 10000, true, "i", playerid);
		TutorialStage[playerid] = 1;
		SetTimer("dump", 7200000, true);
		SetTimer("toilet", 3600000, true);
		N2ETimer[playerid] = SetTimerEx("NeedsToEat", 300000, 0, "i", playerid);
    	IsHungry[playerid] = 0;
    	SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 1);
	}
Reply
#4

Under which callback did you put it?
Reply
#5

Quote:
Originally Posted by kujox222
Посмотреть сообщение
Nope no where.

Код:
public OnPlayerSpawn(playerid)
{
   	if(PlayerInfo[playerid][pTut] == 0)
	{
	    TogglePlayerControllable(playerid, 0);
		TutTimer = SetTimerEx("ShowTut", 10000, true, "i", playerid);
		TutorialStage[playerid] = 1;
		SetTimer("dump", 7200000, true);
		SetTimer("toilet", 3600000, true);
		N2ETimer[playerid] = SetTimerEx("NeedsToEat", 300000, 0, "i", playerid);
    	IsHungry[playerid] = 0;
    	SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 1);
	}
onplayerspawn....
Reply
#6

Try putting in under ongamemodeinit
Reply
#7

Код:
error 017: undefined symbol "playerid"
I got this error...
Reply
#8

Put it under OnPlayerConnect.

The problem is that you are setting the player's weapon skills when their pTut variable is 0. What if it's 1?
Reply
#9

Quote:
Originally Posted by Sasoft
Посмотреть сообщение
Try putting in under ongamemodeinit
Don't confuse other if you know nothing. Do you know what are you saying?
Reply
#10

Quote:
Originally Posted by Emmet_
Посмотреть сообщение
Put it under OnPlayerConnect.

The problem is that you are setting the player's weapon skills when their pTut variable is 0. What if it's 1?
That worked thanks man.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)