SA-MP Forums Archive
Button action - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Button action (/showthread.php?tid=125245)



Button action - Aram555 - 02.02.2010

Does not change Classes and a gang And colours
Here is how I do:
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	if(newkeys & 2)
	{
	SetPlayerSkin(playerid, 105);
	SetPlayerSkin(playerid, 106);
	SetPlayerSkin(playerid, 107);
	gTeam[playerid] = TEAM_Groove;
	SendClientMessage(playerid, COLOR_LIGHTBly, "you groove");
       }
	return 1;
}
Can help?