Little bug on class selection. - 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)
+--- Thread: Little bug on class selection. (
/showthread.php?tid=302554)
Little bug on class selection. -
Azzeto - 09.12.2011
On my class selection it seems like the skins are spinning like 25 percent each diffrent team, heres my onplayerrequestclass
PHP код:
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 0..2:
{
gTeam[playerid] = TEAM_GROVE;
SetPlayerPos(playerid,2530.1155,-1649.7635,14.5767);
SetPlayerCameraPos(playerid,2527.9509,-1651.2468,14.6196);
SetPlayerCameraLookAt(playerid,2530.1155,-1649.7635,14.5767);
GameTextForPlayer(playerid,"~g~Grove Street Families",3000,4);
SetPlayerColor(playerid,COLOR_GREEN);
}
case 3..5:
{
gTeam[playerid] = TEAM_BALLA;
SetPlayerPos(playerid,1977.9979,-1126.9419,25.9760);
SetPlayerCameraPos(playerid,1977.4221,-1129.9943,25.7971);
SetPlayerCameraLookAt(playerid,1977.9979,-1126.9419,25.9760);
GameTextForPlayer(playerid,"~p~Glen Park Ballas",3000,4);
SetPlayerColor(playerid,COLOR_PURPLE);
}
case 6..8:
{
gTeam[playerid] = TEAM_AZTECA;
SetPlayerPos(playerid,1745.5616,-2120.5334,13.5543);
SetPlayerCameraPos(playerid,1745.8317,-2117.6328,13.3828);
SetPlayerCameraLookAt(playerid,1745.5616,-2120.5334,13.5543);
GameTextForPlayer(playerid,"~w~Los Santos Azteca",3000,4);
SetPlayerColor(playerid,COLOR_CYAN);
}
}
Can you tell me why the skins are turning?
AND!! READ!!
Why the heck cant people chat ? The text doesnt show
Re: Little bug on class selection. -
[MWR]Blood - 09.12.2011
Set a same angle on every position...
https://sampwiki.blast.hk/wiki/Function:...yerFacingAngle
Re: Little bug on class selection. -
Thresholdold - 09.12.2011
Exactly. Try using SetPlayerFacingAngle
Re: Little bug on class selection. -
Azzeto - 09.12.2011
Oh durh thanks.
What about the chat bug?
Re: Little bug on class selection. -
Thresholdold - 09.12.2011
Check your OnPlayerText function... there's probably something missing, or is interrupting with the normal chat. Post it if you can.
Re: Little bug on class selection. -
Azzeto - 09.12.2011
Oh LOL I had Return 0; Thanks!