Little bug on class selection.
#1

On my class selection it seems like the skins are spinning like 25 percent each diffrent team, heres my onplayerrequestclass

PHP код:
public OnPlayerRequestClass(playeridclassid)
{
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
Reply
#2

Set a same angle on every position...
https://sampwiki.blast.hk/wiki/Function:...yerFacingAngle
Reply
#3

Exactly. Try using SetPlayerFacingAngle
Reply
#4

Oh durh thanks.

What about the chat bug?
Reply
#5

Check your OnPlayerText function... there's probably something missing, or is interrupting with the normal chat. Post it if you can.
Reply
#6

Oh LOL I had Return 0; Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)