Need weapon on character selection plz
#1

hey guys you know some gang war servers have the thing that shows what skin has what types of weapons? can some link me? or something because i searched and found nothing
Reply
#2

Do you maybe have a picture?
Reply
#3

Quote:
Originally Posted by Joe Torran C
Do you maybe have a picture?
well no i dont but i can explain, like this for example when selecting a skin(character) it will display in clear textdraw(small text) just what weapons they have:

Mac 10
Deset Eagle

etc.... goes by id of the weapon they start off with

it will display on the buttom right
Reply
#4

Just use GameText? like GameText("Mac 10 and Deagle",3000,3); i guess
Reply
#5

I don't remember the code now , I am on my iPhone 2morrow I"ll pm u with the code

Reply
#6

Quote:
Originally Posted by [AC
Etch ]
I don't remember the code now , I am on my iPhone 2morrow I"ll pm u with the code

alright thanks man
Reply
#7

under OnPlayerRequestClass

Код:
if(classid == 1) // 1 is the first addplayerclass under ongamemodeinit and 2 is the second etc..
    {
    GameTextForPlayer(playerid,"Weapon1~n~Weapon2~n~Weapon3",1000,3); // 1000 is the time in milli seconds , 3 is the style
    return 1;
    }
You can also use SendClientMessage just same as the code i wrote but replace "GameTextForPlayer" With "SendClientMessage"

also take a look at this , all the styles : https://sampwiki.blast.hk/wiki/GameTextStyle
Reply
#8

Come to think of it, Ive seen this on a gamemode before,
They used textdraws

In a format like:

Weapon: ammo
---------------
Weapon: ammo
Reply
#9

Quote:
Originally Posted by Joe Torran C
Come to think of it, Ive seen this on a gamemode before,
They used textdraws

In a format like:

Weapon: ammo
---------------
Weapon: ammo
it's in every cops and robbers server
Reply
#10

Never seen it in a CnR,
It was one of sa-mp 0.2x gamemodes that came with the server package
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)