Classs selection for new players
#3

Under GameModeInit put this, replace x, y, z and angle with your own coords.
pawn Код:
for(new cx=0; cx<300; cx++) //Makes a loop from 0 to 299 (all skins)
{
    AddPlayerClass(cx, x, y, z, angle, 0, 0, 0, 0, 0, 0);
}
For class selection, replace x, y, z with the coords where the player should be, angle wich way he should be facing, and replace Cx, Cy and Cz with the coords of the camera.
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, x, y, z);
    SetPlayerFacingAngle(playerid, angle);
    SetPlayerCameraPos(playerid, Cx, Cy, Cz);
    SetPlayerCameraLookAt(playerid, x, y, z);
    return 1;
}
EDIT: How did you have time to write all that in so short time O_o
Reply


Messages In This Thread
Classs selection for new players - by Dziugsas - 14.06.2012, 06:56
Re: Classs selection for new players - by Faisal_khan - 14.06.2012, 07:05
Re: Classs selection for new players - by [NWA]Hannes - 14.06.2012, 07:06
Re: Classs selection for new players - by Unfriendly - 14.06.2012, 07:15
Re: Classs selection for new players - by Faisal_khan - 14.06.2012, 08:03

Forum Jump:


Users browsing this thread: 1 Guest(s)