29.10.2012, 09:33
PHP код:
//Public OnPlayerRequestClass.
public OnPlayerRequestClass(playerid, classid)
{
Class[playerid] = classid;
SetPlayerInterior(playerid,3);
SetPlayerVirtualWorld(playerid,1000);
SetPlayerPos(playerid,944.99,-41.64,1001.77);
SetPlayerFacingAngle(playerid,180.0);
SetPlayerCameraPos(playerid,944.69,-47.54,1001.12);
SetPlayerCameraLookAt(playerid,944.99,-41.64,1001.77);
switch(classid)
{
case 0:
{
GameTextForPlayer(playerid,"~w~TEST",1000,4);
}
case 1:
{
GameTextForPlayer(playerid,"~b~TEST2",1000,4);
}
return 1;
}