Need weapon on character selection plz - 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: Need weapon on character selection plz (
/showthread.php?tid=133562)
Need weapon on character selection plz -
Arsham7 - 12.03.2010
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
Re: Need weapon on character selection plz -
Torran - 12.03.2010
Do you maybe have a picture?
Re: Need weapon on character selection plz -
Arsham7 - 13.03.2010
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
Re: Need weapon on character selection plz -
Naxix - 13.03.2010
Just use GameText? like GameText("Mac 10 and Deagle",3000,3); i guess
Re: Need weapon on character selection plz -
aircombat - 13.03.2010
I don't remember the code now , I am on my iPhone 2morrow I"ll pm u with the code
Re: Need weapon on character selection plz -
Arsham7 - 13.03.2010
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
Re: Need weapon on character selection plz -
aircombat - 13.03.2010
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
Re: Need weapon on character selection plz -
Torran - 13.03.2010
Come to think of it, Ive seen this on a gamemode before,
They used textdraws
In a format like:
Weapon: ammo
---------------
Weapon: ammo
Re: Need weapon on character selection plz -
aircombat - 13.03.2010
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
Re: Need weapon on character selection plz -
Torran - 13.03.2010
Never seen it in a CnR,
It was one of sa-mp 0.2x gamemodes that came with the server package