OnPlayerRequestClass shows no skins even while AddPlayerClass is used.
#4

Quote:
Originally Posted by jlalt
Посмотреть сообщение
Show the codes under
OnPlayerRequestClass callback?
I'm a developer of this script also, here is the OnPlayerRequestClass codes:
Код:
public OnPlayerRequestClass(playerid, classid)
{
	if(0 <= classid <= sizeof gTeam - 1)
	{
	    switch(classid)
	    {
	        case 0:
	        {
    			SetPlayerPos(playerid, 1092.692504, 1941.954956, 1.420313);
				SetPlayerCameraPos(playerid, 1092.692504, 1941.954956, 11.420313);
				SetPlayerCameraLookAt(playerid, 1040.901489, 1864.324218, 9.987780);
			}
	        case 1:
	        {
				SetPlayerPos(playerid, -231.188598, 2603.409179, 53.558605);
				SetPlayerCameraPos(playerid, -231.188598, 2603.409179, 63.558605);
				SetPlayerCameraLookAt(playerid, 175.056259, 2705.400634, 74.640449);
			}
			case 2:
	        {
				SetPlayerPos(playerid, -733.832153, 1550.123046, 31.302440);
				SetPlayerCameraPos(playerid, -733.832153, 1550.123046, 41.302440);
				SetPlayerCameraLookAt(playerid, -807.990234, 1573.501464, 27.960933);
			}
			case 3:
	        {
				SetPlayerPos(playerid, -1484.213134, 2575.567138, 47.835937);
				SetPlayerCameraPos(playerid, -1484.213134, 2575.567138, 57.835937);
				SetPlayerCameraLookAt(playerid, -1516.132812, 2520.624267, 56.091800);
			}
			case 4:
	        {
				SetPlayerPos(playerid, -180.885559, 1011.030151, 10.378807);
				SetPlayerCameraPos(playerid, -180.885559, 1011.030151, 20.378807);
				SetPlayerCameraLookAt(playerid, -208.458114, 1128.558105, 19.578804);
			}
			default:
	        {
				SetPlayerPos(playerid, 1092.692504, 1941.954956, 1.420313);
				SetPlayerCameraPos(playerid, 1092.692504, 1941.954956, 11.420313);
				SetPlayerCameraLookAt(playerid, 1040.901489, 1864.324218, 9.987780);
			}
		}
		SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
		SetPlayerSkin(playerid, gTeam[classid][TeamSkin]);
		new str[15];
		format(str, sizeof str, "%s", gTeam[classid][TeamName]);
		PlayerTextDrawSetString(playerid, TeamTD[playerid], str);
		PlayerTextDrawColor(playerid, TeamTD[playerid], gTeam[classid][TeamColor]);
		PlayerTextDrawShow(playerid, TeamTD[playerid]);
		SetPlayerTeam(playerid, classid);
		SetPlayerColor(playerid, gTeam[classid][TeamColor]);
		pTeam{playerid} = NO_TEAM;
		if(Dialog_Opened(playerid)) return Dialog_Close(playerid);
	}
	return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)