Y_groups, y_classes OnPlayerSpawn it shows last gangs name..
#1

So the thing is:

When player spawns it shows the text in middle Hood Rat even if it Grove Street Crips gang. Maybe someone knows how to fix that.

For example:
pawn Code:
case 0..3:
        {
            Group_SetPlayer(gHoodRats, playerid, true);
            GameTextForPlayer(playerid,"~w~Hood Rats",3000,5); // This will show up an Text , when you select your class
            SetPlayerPos(playerid,1975.2399,-1220.0157,25.0779); // position of the player in the class selection
            SetPlayerCameraPos(playerid,1969.5686,-1224.0016,24.9909); // Cameraposition
            SetPlayerCameraLookAt(playerid,1975.2399,-1220.0157,25.0779);
            SetPlayerFacingAngle(playerid,122.4500);
            SetPlayerColor(playerid,0xA000FFFF); // Teamcolor
        }
        case 4..7:
        {
            Group_SetPlayer(gGSF, playerid, true);
            GameTextForPlayer(playerid,"~w~Grove Street Crips",3000,5);
            SetPlayerPos(playerid,2500.6060,-1672.1453,13.3512);
            SetPlayerCameraPos(playerid,2507.0615,-1674.3574,13.3732);
            SetPlayerCameraLookAt(playerid,2500.6060,-1672.1453,13.3512);
            SetPlayerFacingAngle(playerid,252.4717);
            SetPlayerColor(playerid,0x55FF00FF);
        }
(+ big thanks to ****** for explaining how y_commands works with y_groups works as charm)

Thank you for your time.

And wish you a good day. With Respect Scrillex.
Reply
#2

pawn Code:
switch(classid)
    {
        case 0..3:
        {
            Group_SetPlayer(gHoodRats, playerid, true);
            GameTextForPlayer(playerid,"~w~Hood Rats",3000,5); // This will show up an Text , when you select your class
            SetPlayerPos(playerid,1975.2399,-1220.0157,25.0779); // position of the player in the class selection
            SetPlayerCameraPos(playerid,1969.5686,-1224.0016,24.9909); // Cameraposition
            SetPlayerCameraLookAt(playerid,1975.2399,-1220.0157,25.0779);
            SetPlayerFacingAngle(playerid,122.4500);
            SetPlayerColor(playerid,0xA000FFFF); // Teamcolor
        }
        case 4..7:
        {
            Group_SetPlayer(gGSF, playerid, true);
            GameTextForPlayer(playerid,"~w~Grove Street Crips",3000,5);
            SetPlayerPos(playerid,2500.6060,-1672.1453,13.3512);
            SetPlayerCameraPos(playerid,2507.0615,-1674.3574,13.3732);
            SetPlayerCameraLookAt(playerid,2500.6060,-1672.1453,13.3512);
            SetPlayerFacingAngle(playerid,252.4717);
            SetPlayerColor(playerid,0x55FF00FF);
        }
It's just the thing.. Switch(classid) I think thats why something is not working correctly..
Reply
#3

Try using a TextDraw instead.
Quote:
Originally Posted by SA-MP Wiki/GameTextStyle
Style 5

Displays for 3 seconds, regardless of what time you set. Will refuse to be shown if it is 'spammed'.
Reply
#4

Okay LarzI I will try.. But the thing is.. Now what I have experienced with y_commands..

So the thing is I want to set it gGSF but it works with several another groups too..... How can I do it only for one gGroup.

Yesterday I was all night up to trying to figure it out..

pawn Code:
GROUP_ADD<gGSF>
    {
        @YCMD:kill;
    }
YCMD:kill(playerid, params[], help)
{
    SetPlayerHealth(playerid, 0.0);
    return 1;
}
Reply
#5

If that fails to work, try removing the GROUP_ADD and use the functions instead
pawn Code:
Group_SetGlobalCommand(kill, false);
    Group_SetCommand(gGSF, kill, true);
Reply
#6

Okay that worked kinda...

You see when I'am in Group gSBF and I write /kill it shows uknown command but still he dies..

What could be wrong?

°But for gGSF it worked fine thanks LarzI
Reply
#7

Now there is a problem.. It show on all groups.. Uknown Command but command still works!
Reply
#8

Okay thanks.. I will wait for response.. Man you are cool.. Just helped a lot... If it will not be much trouble for you.. Maybe you can pm me or something.. Or write in this topic how it is BIG thanks man for it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)