Simple questions
#1

First question :
How can I make a certain skin, spawn randomly anywhere.

Second question :
Why the hell doesn't the GameTextForPlayer show up?!

pawn Код:
if(classid == 105)
    {
    GameTextForPlayer(playerid, "Grove Team", 5000, 2);
    gTeam[playerid] = Grove;
    SetPlayerTeam(playerid,1);
    SetPlayerPos(playerid, 1, 1, 1);
     }
Reply
#2

Just check if they are using whatever skin when they spawn and set their position randomly somewhere. As for the gametext, read this https://sampwiki.blast.hk/wiki/GameTextStyle . That text style may only work for after a player dies. Just try another one like 3 or 4.
Reply
#3

Quote:
Originally Posted by Baked-Banana
Just check if they are using whatever skin when they spawn and set their position randomly somewhere. As for the gametext, read this https://sampwiki.blast.hk/wiki/GameTextStyle . That text style may only work for after a player dies. Just try another one like 3 or 4.
Okay, thanks for the help man
Reply
#4

I'm really sorry for the double post...
But, why isn't the GameTextForPlayer still
doesn't show up??

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{

    SetPlayerColor(playerid,0xAFAFAFAA);
    SetPlayerInterior(playerid,14);
    SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
    SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);

    if(classid == 105)
    {
    GameTextForPlayer(playerid, "Grove Team", 5000, 4);
    gTeam[playerid] = Grove;
    SetPlayerTeam(playerid,1);
     }
    else if(classid == 106)
    {
    GameTextForPlayer(playerid, "Grove Team", 5000, 4);
    gTeam[playerid] = Grove;
    SetPlayerTeam(playerid,1);
    }
    else if(classid == 107)
    {
    GameTextForPlayer(playerid,"Grove Team", 5000, 4); // even with 3 and 0 style
    gTeam[playerid] = Grove;
    SetPlayerTeam(playerid,1);
    }
    return 1;
}
Reply
#5

You have 107 classes? Classid is in the order of 0, 1, 2, etc. from your AddPlayerClasses. So if you add in 3 player classes, they will be in the order of 0, 1, 2.
Reply
#6

Quote:
Originally Posted by Baked-Banana
You have 107 classes? Classid is in the order of 0, 1, 2, etc. from your AddPlayerClasses. So if you add in 3 player classes, they will be in the order of 0, 1, 2.
OH, LOL, thanks again xD

I kinda put the number of the skinid, so FAIL xD
Reply
#7

Quote:
Originally Posted by ViruZZzZ_ChiLLL
Quote:
Originally Posted by Baked-Banana
You have 107 classes? Classid is in the order of 0, 1, 2, etc. from your AddPlayerClasses. So if you add in 3 player classes, they will be in the order of 0, 1, 2.
OH, LOL, thanks again xD

I kinda put the number of the skinid, so FAIL xD
lol.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)