29.07.2013, 12:54
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.
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;
}