Custom Spawn Button(Textdraw) -
Glossy42O - 10.04.2015
Ok, like the tittle says, i've removed the spawn button to make a custom one but.. to switch players,
PHP код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickid == PlayerText:Textdraw7);
{
SpawnPlayer(playerid);
}
else if(clickid == PlayerText:Textdraw8); // Kinda stuck here
{
ye stuck there at textdraw 8..
Re: Custom Spawn Button(Textdraw) -
TwinkiDaBoss - 10.04.2015
You mean to switch skins?
Send player to request class, ForceClassSelection(playerid) or use SetSpawnInfo.
Or use more textdraws to make skins in textdraws or something like that.
If I missunderstood, what do you mean to switch players?
Re: Custom Spawn Button(Textdraw) -
Glossy42O - 10.04.2015
No, i meant, If you know when you're at class selection, You got those < >, To switch skins like, Change team, If you know what i'm sayin, i wonder how can i do if i press at textdraw and it's goes < or >
Re: Custom Spawn Button(Textdraw) -
Abagail - 10.04.2015
You can just make a textdraw box with the text being "<" or ">" simply - and when they press set their spawn information and spawn them into the game.
Re: Custom Spawn Button(Textdraw) -
Glossy42O - 10.04.2015
I did textdraw with < >, but when they press it, what do i need to write here
else if(clickid == PlayerText:Textdraw

;
{
Here so it'll do NEXT
Re: Custom Spawn Button(Textdraw) -
Glossy42O - 11.04.2015
bump !
Re: Custom Spawn Button(Textdraw) -
StreetboyBalkan - 11.04.2015
So,define variable skin and then use it into SetSpawnInfo inside
Код:
else if(clickid == PlayerText:Textdraw ;
{
Re: Custom Spawn Button(Textdraw) -
Glossy42O - 11.04.2015
How? I need more explanation.. i forgot all the scripting things
Re: Custom Spawn Button(Textdraw) -
StreetboyBalkan - 11.04.2015
You have PlayerInfo[playerid][pSkin] and when player use "<" or ">" change it to different skin id.
Then,when he click "spawn",spawn him with a code :
Код:
SetSpawnInfo( playerid, team , PlayerInfo[playerid][pSkin] , Float:x, Float:y , Float:z , Float:Angle,weapon1, weapon1_ammo, weapon2,
weapon2_ammo, weapon3, weapon3_ammo);
Re: Custom Spawn Button(Textdraw) -
Glossy42O - 11.04.2015
edit: nvm, i'll do it in the next versions, thanks for the help tho