Simple questions - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Simple questions (
/showthread.php?tid=149195)
Simple questions -
ViruZZzZ_ChiLLL - 21.05.2010
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);
}
Re: Simple questions -
Backwardsman97 - 21.05.2010
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.
Re: Simple questions -
ViruZZzZ_ChiLLL - 21.05.2010
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
Re: Simple questions -
ViruZZzZ_ChiLLL - 21.05.2010
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;
}
Re: Simple questions -
Backwardsman97 - 21.05.2010
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.
Re: Simple questions -
ViruZZzZ_ChiLLL - 21.05.2010
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
Re: Simple questions -
Backwardsman97 - 21.05.2010
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.