Author Topic: Skins  (Read 4704 times)

0 Members and 1 Guest are viewing this topic.

Offline GTA-Roloboy

  • Made Man
  • ***
  • Posts: 135
    • View Profile
Skins
« on: February 01, 2008, 09:22:39 pm »
As reply to: http://forum.vicecitymultiplayer.com/index.php?topic=320.0

Can this also with skins?

I have this:

Code: [Select]
[SKINS]
0=Tommy-Vercetti
1=Cop
2=Swat
3=FBI
4=Army
5=Paramedic
6=Fireman
7=Golf-player
9=Green-vested-lady
10=Bum-(lady)
11=Punk-in-a-leather-jacket
12=Man-in-a-green-suit-(Probably-a-lawyer)
13=Lady-in-a-blue-suit
14=Lady-in-a-white-suit
15=Man-with-a-yellow-shirt
16=Arabic-guy-in-a-black-suit
17=Beach-girl-#1
18=Beach-girl-#2-(fat)
19=Beach-guy-#1
20=Becah-guy-#2-(fat)
21=Lady-in-a-purple-suit
22=Lady-in-a-black-dress
23=lady-carrying-food
24=Prostitue-#1
25=Bum-(lady)-(same)
26=Bum-(man)
27=GarbageMan
28=Taxi-Driver-(red-shirt)
29=Hatian
30=Criminal-(the-one-the-cop-always-chases-in-sp-lol)
31=Black-lady-with-a-blue-vest
32=Black-lady-with-a-grey-skirt
33=Black-guy-with-a-blue-vest
34=Black-guy-with-a-brown-suit
35=Black-lady-with-a-zebra-dress
36=Black-lady-in-a-red-dress
37=Black-guy-in-a-pink-suit
38=Beach-lady-#3
39=Beach-guy-#3
40=Beach-lady-#4
41=Beach-guy-#4
42=Black-guy-in-a-plaid-suit
43=Prostitute-#2
44=Bum-lady-#2
45=Bum-guy-#2
46=Black-guy-in-a-red-suit
47=Black-guy-with-a-white-hat-and-red-shirt
48=Punk-#2
49=Prostitute-#2
50=Old-lady-in-a-green-sweater
51=Punk-#3
52=Old-guy-in-a-plaid-suit
53=Lady-in-a-pink-suit
54=Lady-in-a-white-suit-#2
55=guy-in-a-green-suit-and-blonde-hair
56=Old-guy-in-a-blue-suit
57=Beach-lady-#5
58=Beach-guy-#5
59=Beach-lady-#6
60=Beach-guy-#6
61=Construction-worker
62=Golf-guy-#2
63=Golf-lady
64=Golf-guy-#3
65=Beach-lady-#7
66=Beach-guy-#7
67=Lady-in-a-purple-suit-#2
68=Guy-with-a-white-shirt-and-blue-pants
69=Guy-in-a-Green-suit-#2
70=Prostitute-#2
71=Bum-lady-#3
72=Guy-in-a-brown-sweater
73=Carjacker
74=Taxi-Driver-(blue)
75=Lady-in-a-workout-suit
78=Skater-guy
79=Young-lady-with-bags
80=Old-lady-with-bags
81=Lady-with-a-camera-#1
82=Lady-with-a-camera-#2
83=Cuban-#1
84=Cuban-#2
85=Hatian-#1
86=Hatian-#2
87=Shark-#1
88=Shark-#2
89=Diaz-guy-#1
90=Diaz-guy-#2
91=DBP-security
92=DBP-security-(again)
93=Biker-#1
94=Biker-#2
95=Vercetti-guy-#1
96=Vercetti-guy-#2
97=Undercover-cop-#1
98=Undercover-cop-#2
99=Undercover-cop-#3
100=Undercover-cop-#4
101=Undercover-cop-#5
102=Undercover-cop-#6
103=Guy-with-a-white-shirt-and-brown-sweater
104=Bodyguard
105=Prostitute-#3
106=Prostitute-#4
107=Love-fist-guy-#3
108=Ken-Rosenburg
109=Candy-Suxx
110=Hilary
111=Love-fist-#1
112=Phil
113=Rockstar-guy
114=Sonny
115=Lance
116=Mercades
117=Love-Fist-#2
118=Alex-Srub
119=Lance-(cop)
120=Lance-(again)
121=Cpt.-Cortez
122=Love-Fist-#2-(again)
123=Columbian-(orange-hawaiian-shirt)
124=Hilary-(Robber)
125=Mercades-(again)
126=Cam
127=Cam-(Robber)
128=Phil-(One-arm)
129=Phil-(Robber)
130=Bodyguard
131=Pizza-worker
132=Taxi-driver-(Blue)
133=Taxi-driver-(Red)
134=Sailor-(White)
135=Sailor-(Black)
136=Sailor-(Spanish)
137=Chef
138=Criminal
139=French-guy
140=Worker-(Brown-suit)
141=Hatian
142=Waitress
143=Sonny's-goon-#1
144=Sonny's-goon-#2
145=Sonny's-goon-#3
146=Columbian-#2
147=Guy-with-a-skull-shirt
148=Beach-guy
149=Guy-in-a-green-suit-#1
150=Guy-in-a-green-suit-#2
151=Guy-in-a-green-suit-#3
152=Drag-queen
153=Diaz's-traitor
154=Guy-in-overalls-#1
155=Guy-in-overalls-#2
156=Stripper-#1
157=Stripper-#2
158=Striper-#3
159=Store-clerk

So they an see which skin you are with !skin <Name/ID>

and.. is it possible to do with !weapons <Name/ID> to see which weapons (and ammo) the player have?

Like:

!weapons TestPlayer

** msg >> m60, 1000 - Colt 45, 100 - Sniper Rifle, 2

Code: [Select]
[WEAPONS]
0=Unarmed
1=Brass_Knuckles
2=ScrewDriver
3=GolfClub
4=NightStick
5=Knife
6=Baseball_Bat
7=Hammer   
8=Meat_Cleaver
9=Machete
10=Katana
11=Chainsaw
12=Grenade
13=Remote_Detonation_Grenades
14=Tear_Gas
15=Molotov_Cocktails
16=Rocket
17=Colt45
18=Python
19=Shotgun
20=Spas12_Shotgun
21=Stubby_Shotgun
22=Tec9
23=Uzi
24=Silenced_Ingram
25=Mp5
26=m4
27=Ruger
28=Sniper_Rifle
29=Laser_Scope_Sniper_Rifle
30=Rocket_Launcher
31=Flame_Thrower
32=M60
33=Minigun

Offline Mex

  • Wiseguy
  • **
  • Posts: 63
    • View Profile
Re: Skins
« Reply #1 on: February 02, 2008, 10:49:15 am »
Can this also with skins?

That depends if the skin id is sent from the server to the script when the player spawns.
You can test this by doing the following.

In the vcmp.data alias look for this code:
Code: [Select]
elseif ($1 == [spawn]) {

}

Then add "echo -s $1-" inbetween the curly brackets:
Code: [Select]
elseif ($1 == [spawn]) {
  echo -s $1-
}

Now go ingame and spawn as any skin, and in the main mIRC window you should see "[spawn] something..".
If there is a number somewhere in the "something", it could be the skin id.
Try comparing it to your config skin id and the VC:MP skin id.

If the server does send the skin id to the script, then you can send that value to the vcmp.spawn signal.
Then you can use INI/Hash or whatever method you wish to store that value, which will be used for the !skin command.

If the server doesn't send the skin id to the script, there are other ways to get the !skin command working.

and.. is it possible to do with !weapons <Name/ID> to see which weapons (and ammo) the player have?

You can use the $vcmp.weapon(playerid) alias to get the player's current weapon.
You could try creating an alias which shows all the player's weapons.
Such as, when a player picks up a weapon pickup, store the player id/name, wep id/name and ammo/default ammo amount somewhere.

I can think of a few problems with this though.
If someone buys a weapon at a weapon shop, I don't think the server sends any message to the script.
If someone shoots and runs out of ammo, again I don't think the server sends any message to the script.