01.06.2011, 19:02
Hey! Its your regular customor TechKid! Yes, sorry for yet again post a help thread. Im trying to make a class section using OnPlayerRequestClass, for LVA, LSA, SFA, for ATC and Pilots. But the GameText isnt showing for some reason. Heres the script what is placed in the gamemode.
This is on OnGameModeInit
But the game text just aint showing, I am using strings to see if that would help, it didint.
Anyways, my gamemode is nearly done, expect a couple more posts from me.
Any help is apreciated.
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,-1753.6743,885.2703,295.8750);
SetPlayerCameraPos(playerid,-1753.6849,892.0016,295.8750);
SetPlayerCameraLookAt(playerid,-1753.6743,885.2703,295.8750);
switch (classid)
{
case 61:
{
new string[50];
format(string, sizeof(string), "LVA Pilot");
GameTextForPlayer(playerid, string, 3000, 6);
}
case 164:
{
new string[50];
format(string, sizeof(string), "LVA ATC");
GameTextForPlayer(playerid, string, 3000, 6);
}
}
return 1;
}
pawn Код:
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("SVP V0.5");
AddPlayerClass(61,1319.6895,1261.8535,10.8436,0.0000,0,0,0,0,0,0);
AddPlayerClass(164,1319.6895,1261.8535,10.8436,0.0000,0,0,0,0,0,0);
//There more, the map file and the return
Anyways, my gamemode is nearly done, expect a couple more posts from me.
Any help is apreciated.