skill selection menu, using chat to select -
[Diablo] - 30.08.2011
Hi!
as my title says, i would like to create a menu, from which player can select a skill using chat.
example: i spawn as civilian, a skill menu pops up. instead of having the normal menu from which i can select different items using up/down keys, i would like to achieve that by opening the chat and type 7 - to select the skill in menu under number 7.
i tried googling but nothing usefull came up, so any help will be appreciated.
best regards.
Re: skill selection menu, using chat to select -
[Diablo] - 30.08.2011
no ideas so far?
Re: skill selection menu, using chat to select -
=WoR=Varth - 30.08.2011
Use OnPlayerText. Create a bool that if player is selecting a skin.
pawn Код:
new bool:Skinning[MAX_PLAYERS];
//Whereever you want this
Skinning[playerid] = false;
//OnPlayerText
if(Skinning[playerid])
{//I think you need
SetPlayerSkin(playerid,strval(text));
Skinning[playerid] = false;
}
Re: skill selection menu, using chat to select -
[Diablo] - 31.08.2011
hi, thanks for response, but i need a menu for skill select (not skin). if i spawn as civilian, the skill menu pops up, and i would like to select my skill using chat (example: i would press 'T', enter 11 and become rapist)
br
Re: skill selection menu, using chat to select -
=WoR=Varth - 31.08.2011
Omfg pardon me.
You mean, weapon skill?
Re: skill selection menu, using chat to select -
[Diablo] - 31.08.2011
no problem there
not really a weapon skill, a civilian skill (like rapist, arms dealer, drug dealer, driver, hitman.. )
I'm not really sure if they are called skills, but i couldn't remember a different word :P
Re: skill selection menu, using chat to select -
grand.Theft.Otto - 31.08.2011
I'm sure He's talking about textdraw. And yes they are called skills.
My server is based on dialogs, I'm not too good with textdraw so I'm no help
Re: skill selection menu, using chat to select -
=WoR=Varth - 31.08.2011
Quote:
Originally Posted by [Diablo]
no problem there
not really a weapon skill, a civilian skill (like rapist, arms dealer, drug dealer, driver, hitman.. )
I'm not really sure if they are called skills, but i couldn't remember a different word :P
|
Do you already have the variable?