15.10.2011, 21:25
Script
The Text doesnt shows up IG -.- , can someone help me?
pawn Код:
#define Groves 0
#define Ballas 1
//////////////////////////////////////////////////////////////////////////////// NEWS
new gTeam[MAX_PLAYERS];
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
AddPlayerClass(107,2508.5671,-1673.6665,13.3793,86.2585,0,0,0,0,0,0);
AddPlayerClass(106,2508.5671,-1673.6665,13.3793,86.2585,0,0,0,0,0,0);
//
AddPlayerClass(109,2508.5671,-1673.6665,13.3793,86.2585,0,0,0,0,0,0);
return 1;
}
public OnGameModeExit()
{
return 1;
}
forward SetPlayerTeamFromClass(playerid, classid);
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerTeamFromClass(playerid, classid);
return 1;
}
public SetPlayerTeamFromClass(playerid, classid)
{
if(classid == 0)
{
gTeam[playerid] = Groves;
SetPlayerPos(playerid,135.3506,-82.9732,1.4297);
SetPlayerCameraPos(playerid,130.6333,-82.2207,1.4297);
SetPlayerCameraLookAt(playerid,135.3506,-82.9732,1.4297);
SetPlayerFacingAngle(playerid,89.1092);
}
else if(classid == 1)
{
gTeam[playerid] = Ballas;
SetPlayerPos(playerid,135.3506,-82.9732,1.4297);
SetPlayerCameraPos(playerid,130.6333,-82.2207,1.4297);
SetPlayerCameraLookAt(playerid,135.3506,-82.9732,1.4297);
SetPlayerFacingAngle(playerid,89.1092);
}
return 1;
}
stock OnPlayerSelectClass(playerid, classid)
{
switch(classid)//Switch the classid's..
{
case 0..1://If classid(addplayerclass id) is 0 to 1..
{
gTeam[playerid] = Groves;//There army class..
GameTextForPlayer(playerid, "~y~Groves", 3000, 5);
}
case 2://If classid(addplayerclass id) is 2..
{
gTeam[playerid] = Ballas;//There swat class..
GameTextForPlayer(playerid, "~y~Ballas", 3000, 5);
}
}
}