AddPlayerClass
#1

I was offline for about 7 months and I need help using AddPlayerClass.

I added all skins but when I need to change skin on player spawn I can't. I press arrows on screen but nothing.

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 2524.504882, -1676.879760, 19.930225);
    SetPlayerFacingAngle(playerid, 270);
    SetPlayerCameraLookAt(playerid, 2524.504882, -1676.879760, 19.930225);
    SetPlayerCameraPos(playerid, 2524.504882 + (5 * floatsin(-270, degrees)), -1676.879760 + (5 * floatcos(-270, degrees)), 19.930225);
    SetSpawnInfo( playerid, 0, 0, 1545.2649, -1675.5452, 13.5600, 90, 26, 36, 28, 150, 0, 0 );
    return 1;
}
pawn Код:
public OnGameModeInit()
{
    SetGameModeText("Gamemode");
    for(new i=0; i<300; i++)
    {
        if(i != 74) AddPlayerClass(i, 2524.504882, -1676.879760, 19.930225, 270, 0, 0, 0, 0, 0, 0);
    }
    return 1;
}
Reply


Messages In This Thread
AddPlayerClass - by RedJohn - 29.07.2013, 12:54
Re: AddPlayerClass - by appleomax - 29.07.2013, 13:01
Re: AddPlayerClass - by RedJohn - 29.07.2013, 13:02
Re: AddPlayerClass - by dEcooR - 29.07.2013, 13:07
Re: AddPlayerClass - by RedJohn - 29.07.2013, 13:10
Re: AddPlayerClass - by Xoomer - 29.07.2013, 13:11
Re: AddPlayerClass - by RedJohn - 29.07.2013, 13:12
Re: AddPlayerClass - by Xoomer - 29.07.2013, 13:13
Re: AddPlayerClass - by RedJohn - 29.07.2013, 13:15
Re: AddPlayerClass - by Konstantinos - 29.07.2013, 13:16

Forum Jump:


Users browsing this thread: 1 Guest(s)