skill selection menu, using chat to select
#1

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.
Reply
#2

no ideas so far?
Reply
#3

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;
}
Reply
#4

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
Reply
#5

Omfg pardon me.

You mean, weapon skill?
Reply
#6

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
Reply
#7

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
Reply
#8

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?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)