OnPlayerRequestClass
#1

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.

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;
}
This is on OnGameModeInit

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
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.
Reply


Messages In This Thread
OnPlayerRequestClass - by Odyssey - 01.06.2011, 19:02
Re: OnPlayerRequestClass - by Jefff - 01.06.2011, 20:00
Re: OnPlayerRequestClass - by Odyssey - 01.06.2011, 20:29
Re: OnPlayerRequestClass - by SchurmanCQC - 01.06.2011, 20:31
Respuesta: Re: OnPlayerRequestClass - by admantis - 01.06.2011, 20:46
Re: Respuesta: Re: OnPlayerRequestClass - by SchurmanCQC - 01.06.2011, 20:49
Re: OnPlayerRequestClass - by Odyssey - 01.06.2011, 20:55
Re: OnPlayerRequestClass - by shitbird - 01.06.2011, 21:43
Re: OnPlayerRequestClass - by Odyssey - 02.06.2011, 11:47

Forum Jump:


Users browsing this thread: 1 Guest(s)