28.03.2009, 17:23
Thanks man 
But since I'm a noob I don't know where to put the switch into...
Or better said, I don't know how to put it together.
My idea is like this:
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 1..5: GameTextForPlayer(playerid, "~r~Team 1 Name Here", 2000, 5); // <---- Skins: 1 through 5
case 6..10: GameTextForPlayer(playerid, "~r~Team 2 Name Here", 2000, 5); // <---- Skins 6 through 10
}
SetPlayerPos(playerid, 1059.6108,-344.4459,73.9922);
SetPlayerFacingAngle(playerid, 1.7606);
SetPlayerCameraPos(playerid, 1059.4236,-340.5163,73.9922);
SetPlayerCameraLookAt(playerid, 1059.6108,-344.4459,73.9922);
return 1;
}
Just a second, maybe I am right :P
Allright, yes!! Thanks alot, it works

But since I'm a noob I don't know where to put the switch into...

Or better said, I don't know how to put it together.
My idea is like this:
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 1..5: GameTextForPlayer(playerid, "~r~Team 1 Name Here", 2000, 5); // <---- Skins: 1 through 5
case 6..10: GameTextForPlayer(playerid, "~r~Team 2 Name Here", 2000, 5); // <---- Skins 6 through 10
}
SetPlayerPos(playerid, 1059.6108,-344.4459,73.9922);
SetPlayerFacingAngle(playerid, 1.7606);
SetPlayerCameraPos(playerid, 1059.4236,-340.5163,73.9922);
SetPlayerCameraLookAt(playerid, 1059.6108,-344.4459,73.9922);
return 1;
}
Just a second, maybe I am right :P
Allright, yes!! Thanks alot, it works

