OnPlayerRequestClass.
#1

Hello scripters.
Basicly i want to make it so my character holds a bat in he's hands, and does an animation.
I used this, but for some reason the weapon doesn't show up in its hands:
Код:
PlayerClass[playerid] = classid;
	switch (classid) {
	case 0:{
	GameTextForPlayer(playerid, "~w~~<~Mad Dog~>~", 1000, 3);
	GivePlayerWeapon(playerid, 5, 1);
	ApplyAnimation(playerid,"BASEBALL","Bat_1",4.1,1,1,1,1,1,1);
	SetPlayerColor(playerid, WHITE);
	}
}
Reply
#2

I dont think GivePlayerWeapon works in OnPlayerRequestSpawn.
You could try to make the player hold an object
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)