[FS]Tintes De Armas Estilo GTA 5

¿Tienes un FilterScript muy bueno y quieres compartirlo con los demás? ¿Qué esperas? ¡Muéstranoslo aquí!

Moderador: Ayudantes

Reglas del Foro
  • Al liberar un FilterScript, debes informar sobre qué trata el código claramente, imágenes o vídeos y la explicación de cómo usarlo.
  • En caso de que quieras publicar un TextDraw que únicamente cumpla una función estética (como ser un TextDraw que muestra el nombre del servidor), es decir, no cumple ninguna función más que decorativa/visual (a diferencia de un TextDraw que realiza la función de velocímetro y contiene los códigos para ello, por ejemplo), debe ir en la sección Guías y Aportes.
  • Si el link de descarga no funciona, el tema será eliminado.
  • Si no eres el autor del FilterScript o has utilizado códigos de otros autores, recuerda colocar los créditos correspondientes. (El plagio es motivo de sanción).
Responder
Avatar de Usuario
DeadGuy1
Aprendiz
Aprendiz
Mensajes: 132
Registrado: 07 Ene 2016 16:08
Reputación: 0

13 Dic 2016 16:19

Jamás he visto un FS así, está increible -good
• Usuario de PawnScript

Diseñador Web
————

KeiberJS
Aprendiz
Aprendiz
Mensajes: 120
Registrado: 18 Feb 2016 21:39
Ubicación: Venezuela Estado Apure
Reputación: 3

14 Dic 2016 14:35

Buenísimo Saludos
APORTES (VER):
Progresos:
┌──────────────────────────────────┐
⊙▂⊙ KeiberJS ⊙▂⊙
└──────────────────────────────────┘

xvkevinxv
Aprendiz
Aprendiz
Mensajes: 6
Registrado: 11 Dic 2015 21:53
Reputación: 0

12 Ene 2017 23:32

Como podria hacer que sea con un comando en ves de un bot
quisiera agregarlo a zc se podra?
Avatar de Usuario
Hernyl
Aprendiz
Aprendiz
Mensajes: 48
Registrado: 26 Ene 2016 14:42
Reputación: 1

11 Feb 2017 08:36

[P]latanoPower escribió:
!Hola, Espero que esten bien mi nombres platano :v y hoy les vengo a compartir este maravilloso FS que encontre navegando en Forum-Samp, Se trata de cambiar el color a las armas estilo GTA 5 Aqui les muestro una SS con un video


Aqui esta el video abajo de este post estaran los creditos, OJO: Este FS no es mio... Solo les queria compartir.


CREDITOS:Jingles
 Codigo Pawno:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340

#include <a_samp>
#include <ZCMD>
#include <streamer>

#define     MAX_WEPTINTS     11

enum ePlayerInfo {

    p_iWepTints[MAX_WEPTINTS]
}
new PlayerInfo[MAX_PLAYERS][ePlayerInfo];

new iGunShopActor;

new iWeaponTints[6] = {
    0xFF4B5320, // Army
    0xFF9EAF43, // Green
    0xFFFFAE1A, // Orange
    0xFF0073E6, // LSPD
    0xFFFF1493, // Pink
    0xFFFFD700 // Gold 
};

new Menu:iGunShopWeaponMenuID,
    Menu:iGunShopWeaponTintMenuID,
    bool:bPlayerInGunMenu[MAX_PLAYERS],
    pCurrentWeapon[MAX_PLAYERS];

public OnFilterScriptInit() {

    iGunShopActor = CreateActor(179, 295.5334,-40.5803,1001.5156, 0.0);

    iGunShopWeaponMenuID = CreateMenu("Weapon Tint Shop", 1, 20.0, 100.0, 200.0, 100.0);
    AddMenuItem(iGunShopWeaponMenuID, 0, "9MM Pistol");
    AddMenuItem(iGunShopWeaponMenuID, 0, "Silenced Pistol");
    AddMenuItem(iGunShopWeaponMenuID, 0, "Desert Eagle");
    AddMenuItem(iGunShopWeaponMenuID, 0, "Pump Shotgun");
    AddMenuItem(iGunShopWeaponMenuID, 0, "Combat Shotgun");
    AddMenuItem(iGunShopWeaponMenuID, 0, "UZI");
    AddMenuItem(iGunShopWeaponMenuID, 0, "MP5");
    AddMenuItem(iGunShopWeaponMenuID, 0, "AK47");
    AddMenuItem(iGunShopWeaponMenuID, 0, "M4");
    AddMenuItem(iGunShopWeaponMenuID, 0, "TEC-9");
    AddMenuItem(iGunShopWeaponMenuID, 0, "Rifle");

    iGunShopWeaponTintMenuID = CreateMenu("Weapon Tints", 1, 20.0, 100.0, 200.0, 100.0);
    AddMenuItem(iGunShopWeaponTintMenuID, 0, "Army Tint ($500.000)");
    AddMenuItem(iGunShopWeaponTintMenuID, 0, "Green Tint ($500.000)");
    AddMenuItem(iGunShopWeaponTintMenuID, 0, "Orange Tin ($500.000)t");
    AddMenuItem(iGunShopWeaponTintMenuID, 0, "LSPD Tint ($1.000.000)");
    AddMenuItem(iGunShopWeaponTintMenuID, 0, "Pink Tint ($1.000.000)");
    AddMenuItem(iGunShopWeaponTintMenuID, 0, "Gold Tint ($2.000.000)");
    return 1;
}

public OnFilterScriptExit() {

    DestroyActor(iGunShopActor);
    return 1;
}

public OnPlayerDisconnect(playerid, reason) {

    if(GetPlayerMenu(playerid) == iGunShopWeaponTintMenuID || GetPlayerMenu(playerid) == iGunShopWeaponMenuID) {
        DestroyDynamicObject(GetPVarInt(playerid, "GunShpObj"));
        DeletePVar(playerid, "GunShpSel0");
        DeletePVar(playerid, "GunShpSel1");
        DeletePVar(playerid, "GunShpObj");
        SetCameraBehindPlayer(playerid);
    }
    bPlayerInGunMenu[playerid] = false;
    return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) {

    if(newkeys & KEY_YES) {

        if(GetPlayerTargetActor(playerid) != INVALID_ACTOR_ID) {

            new iActorID = GetPlayerTargetActor(playerid);
            if(iActorID == iGunShopActor) {

                SetPlayerCameraPos(playerid, 295.5854, -38.2358, 1002.2467);
                SetPlayerCameraLookAt(playerid, 295.5898, -39.2343, 1002.0201);
                new iObjectID = CreateDynamicObject(346, 295.46719, -39.79360, 1001.68970,   0.00000, 0.00000, 0.00000, .playerid = playerid);
                MoveDynamicObject(iObjectID, 295.47,-39.79360, 1001.68970, 0.0005, 0.0, 0.0, 180.0);
                Streamer_Update(playerid, STREAMER_TYPE_OBJECT);
                SetPVarInt(playerid, "GunShpObj", iObjectID);
                ShowMenuForPlayer(iGunShopWeaponMenuID, playerid);
                bPlayerInGunMenu[playerid] = true;
                TogglePlayerControllable(playerid, false);
            }
        }
    }
}

public OnPlayerUpdate(playerid) {

    new newkeys,
        updown,
        leftright;

    new pCurWeap = GetPlayerWeapon(playerid);
    if(pCurWeap != pCurrentWeapon[playerid]) {

        WepTint_OnPlayerChangeWeapon(playerid, pCurWeap);
        pCurrentWeapon[playerid] = pCurWeap;
    }

    GetPlayerKeys(playerid, newkeys, updown, leftright);
    if(updown == KEY_UP) {

        if(bPlayerInGunMenu[playerid]) {
            
            if(GetPlayerMenu(playerid) == iGunShopWeaponMenuID) {

                new iPMenuItem = GetPVarInt(playerid, "GunShpSel0"),
                    iObjectID = GetPVarInt(playerid, "GunShpObj");

                if(iPMenuItem < 1) iPMenuItem = MAX_WEPTINTS;
                iPMenuItem--;

                DestroyDynamicObject(iObjectID);
                iObjectID = CreateDynamicObject(WepTint_GetWeaponObjectID(iPMenuItem), 295.46719, -39.79360, 1001.68970, 0.00000, 0.00000, 0.00000, .playerid = playerid);
                Streamer_Update(playerid, STREAMER_TYPE_OBJECT);
                MoveDynamicObject(iObjectID, 295.47,-39.79360, 1001.68970, 0.0005, 0.0, 0.0, 180.0);
                SetPVarInt(playerid, "GunShpObj", iObjectID);
                SetPVarInt(playerid, "GunShpSel0", iPMenuItem);
            }
            else if(GetPlayerMenu(playerid) == iGunShopWeaponTintMenuID) {

                new iPMenuItem = GetPVarInt(playerid, "GunShpSel1"),
                    iObjectID = GetPVarInt(playerid, "GunShpObj");

                if(iPMenuItem < 1) iPMenuItem = sizeof(iWeaponTints)-1;
                iPMenuItem--;

                DestroyDynamicObject(iObjectID);
                iObjectID = CreateDynamicObject(WepTint_GetWeaponObjectID(GetPVarInt(playerid, "GunShpSel0")), 295.46719, -39.79360, 1001.68970, 0.00000, 0.00000, 0.00000, .playerid = playerid);
                Streamer_Update(playerid, STREAMER_TYPE_OBJECT);
                MoveDynamicObject(iObjectID, 295.47,-39.79360, 1001.68970, 0.0005, 0.0, 0.0, 180.0);
                SetPVarInt(playerid, "GunShpObj", iObjectID);
                SetPVarInt(playerid, "GunShpSel1", iPMenuItem);
            }
        }
    }
    if(updown == KEY_DOWN) {

        if(bPlayerInGunMenu[playerid]) {
            
            if(GetPlayerMenu(playerid) == iGunShopWeaponMenuID) {

                new iPMenuItem = GetPVarInt(playerid, "GunShpSel0"),
                    iObjectID = GetPVarInt(playerid, "GunShpObj");

                if(iPMenuItem >= MAX_WEPTINTS-1) iPMenuItem = -1;
                iPMenuItem++;

                DestroyDynamicObject(iObjectID);
                iObjectID = CreateDynamicObject(WepTint_GetWeaponObjectID(iPMenuItem), 295.46719, -39.79360, 1001.68970, 0.00000, 0.00000, 0.00000, .playerid = playerid);
                Streamer_Update(playerid, STREAMER_TYPE_OBJECT);
                MoveDynamicObject(iObjectID, 295.47,-39.79360, 1001.68970, 0.0005, 0.0, 0.0, 180.0);
                SetPVarInt(playerid, "GunShpObj", iObjectID);
                SetPVarInt(playerid, "GunShpSel0", iPMenuItem);
            }
            else if(GetPlayerMenu(playerid) == iGunShopWeaponTintMenuID) {

                new iPMenuItem = GetPVarInt(playerid, "GunShpSel1"),
                    iObjectID = GetPVarInt(playerid, "GunShpObj");

                if(iPMenuItem >= sizeof(iWeaponTints)-1) iPMenuItem = -1;
                iPMenuItem++;

                DestroyDynamicObject(iObjectID);
                iObjectID = CreateDynamicObject(WepTint_GetWeaponObjectID(GetPVarInt(playerid, "GunShpSel0")), 295.46719, -39.79360, 1001.68970, 0.00000, 0.00000, 0.00000, .playerid = playerid);
                Streamer_Update(playerid, STREAMER_TYPE_OBJECT);
                MoveDynamicObject(iObjectID, 295.47,-39.79360, 1001.68970, 0.0005, 0.0, 0.0, 180.0);
                SetPVarInt(playerid, "GunShpObj", iObjectID);
                SetPVarInt(playerid, "GunShpSel1", iPMenuItem);
            }
        }
    }
    return 1;
}

public OnPlayerSelectedMenuRow(playerid, row) {

    if(GetPlayerMenu(playerid) == iGunShopWeaponMenuID) {
        
        new iObjectID = GetPVarInt(playerid, "GunShpObj");
        DestroyDynamicObject(iObjectID);
        iObjectID = CreateDynamicObject(WepTint_GetWeaponObjectID(row), 295.46719, -39.79360, 1001.68970,   0.00000, 0.00000, 0.00000, .playerid = playerid);
        MoveDynamicObject(iObjectID, 295.47,-39.79360, 1001.68970, 0.0005, 0.0, 0.0, 180.0);
        Streamer_Update(playerid, STREAMER_TYPE_OBJECT);
        SetPVarInt(playerid, "GunShpObj", iObjectID);
        SetPVarInt(playerid, "GunShpSel0", row);
        ShowMenuForPlayer(iGunShopWeaponTintMenuID, playerid);
        return 1;
    }
    if(GetPlayerMenu(playerid) == iGunShopWeaponTintMenuID) {
        
        SetPlayerWeaponPrint(playerid, WepTint_GetWeaponIDFromChoice(GetPVarInt(playerid, "GunShpSel0")), row);
        DestroyDynamicObject(GetPVarInt(playerid, "GunShpObj"));
        DeletePVar(playerid, "GunShpSel0");
        DeletePVar(playerid, "GunShpSel1");
        DeletePVar(playerid, "GunShpObj");
        SetCameraBehindPlayer(playerid);
        TogglePlayerControllable(playerid, true);
        bPlayerInGunMenu[playerid] = false;
        return 1;
    }
    return 1;
}

public OnPlayerExitedMenu(playerid) {

    if(GetPlayerMenu(playerid) == iGunShopWeaponMenuID && !GetPVarType(playerid, "GunShpSel1")) {
        DestroyDynamicObject(GetPVarInt(playerid, "GunShpObj"));
        DeletePVar(playerid, "GunShpSel0");
        DeletePVar(playerid, "GunShpObj");
        SetCameraBehindPlayer(playerid);
        TogglePlayerControllable(playerid, true);
        bPlayerInGunMenu[playerid] = false;
    }
    else if(GetPlayerMenu(playerid) == iGunShopWeaponTintMenuID) {
        DestroyDynamicObject(GetPVarInt(playerid, "GunShpObj"));
        DeletePVar(playerid, "GunShpSel0");
        DeletePVar(playerid, "GunShpSel1");
        DeletePVar(playerid, "GunShpObj");
        SetCameraBehindPlayer(playerid);
        TogglePlayerControllable(playerid, true);
        bPlayerInGunMenu[playerid] = false;
    }    
    return 1;
}

WepTint_GetWeaponObjectID(iChoiceID) {

    new iObjectID;
    switch(iChoiceID) {

        case 0: iObjectID = 346;
        case 1: iObjectID = 347;
        case 2: iObjectID = 348;
        case 3: iObjectID = 349;
        case 4: iObjectID = 351;
        case 5: iObjectID = 352;
        case 6: iObjectID = 353;
        case 7: iObjectID = 355;
        case 8: iObjectID = 356;
        case 9: iObjectID = 372;
        case 10: iObjectID = 357;
        case 11: iObjectID = 359;
        case 12: iObjectID = 360;
        case 13: iObjectID = 362;
    }
    return iObjectID;
}

WepTint_GetWeaponIDFromChoice(iChoiceID) {

    new iWeaponID;
    switch(iChoiceID) {

        case 0: iWeaponID = 22;
        case 1: iWeaponID = 23;
        case 2: iWeaponID = 24;
        case 3: iWeaponID = 25;
        case 4: iWeaponID = 27;
        case 5: iWeaponID = 28;
        case 6: iWeaponID = 29;
        case 7: iWeaponID = 30;
        case 8: iWeaponID = 31;
        case 9: iWeaponID = 32;
        case 10: iWeaponID = 33;
        case 11: iWeaponID = 35;
        case 12: iWeaponID = 36;
        case 13: iWeaponID = 38;
    }
    return iWeaponID;
}

WepTint_GetChoiceIDFromWeapon(iWeaponID) {

    new iChoiceID;
    switch(iWeaponID) {

        case 22: iChoiceID = 0;
        case 23: iChoiceID = 1;
        case 24: iChoiceID = 2;
        case 25: iChoiceID = 3;
        case 27: iChoiceID = 4;
        case 28: iChoiceID = 5;
        case 29: iChoiceID = 6;
        case 30: iChoiceID = 7;
        case 31: iChoiceID = 8;
        case 32: iChoiceID = 9;
        case 33: iChoiceID = 10;
        case 35: iChoiceID = 11;
        case 36: iChoiceID = 12;
        case 38: iChoiceID = 13;
        default: iChoiceID = 0;
    }
    return iChoiceID;
}

WepTint_OnPlayerChangeWeapon(playerid, newweapon) {

    RemovePlayerAttachedObject(playerid, 7);
    if(PlayerInfo[playerid][p_iWepTints][WepTint_GetChoiceIDFromWeapon(newweapon)]) {

        SetPlayerWeaponPrint(playerid, newweapon, PlayerInfo[playerid][p_iWepTints][WepTint_GetChoiceIDFromWeapon(newweapon)]);
    }
}

SetPlayerWeaponPrint(playerid, iWepID, iChoice) {

    switch(iWepID) {

        case 22: SetPlayerAttachedObject(playerid, 7, 346, 6, -0.004999, -0.003999, -0.006000, 0.000000, 0.000000, -1.800000, 1.007000, 1.337999, 1.069000, iWeaponTints[iChoice], iWeaponTints[iChoice]);
        case 23: SetPlayerAttachedObject(playerid, 7, 347, 6, -0.003999, -0.001999, -0.003999, 0.000000, 0.299999, -0.999999, 1.000000, 1.188000, 1.063000, iWeaponTints[iChoice], iWeaponTints[iChoice]);
        case 24: SetPlayerAttachedObject(playerid, 7, 348, 6, -0.006999, -0.004000, 0.002000, -1.600000, -0.200000, 0.400000, 1.019999, 1.146999, 1.027000, iWeaponTints[iChoice], iWeaponTints[iChoice]);
        case 25: SetPlayerAttachedObject(playerid, 7, 349, 6, 0.000000, -0.008999, -0.004000, 0.000000, 1.099999, 1.499999, 1.000000, 1.222000, 1.088000, iWeaponTints[iChoice], iWeaponTints[iChoice]);
        case 27: SetPlayerAttachedObject(playerid, 7, 351, 6, 0.003000, -0.014000, -0.003000, 0.000000, 0.000000, 2.199999, 1.000000, 1.371000, 1.023000, iWeaponTints[iChoice], iWeaponTints[iChoice]);
        case 28: SetPlayerAttachedObject(playerid, 7, 352, 6, -0.002000, -0.008000, -0.001999, -0.300000, 0.000000, 1.199999, 1.019999, 1.245000, 1.043000, iWeaponTints[iChoice], iWeaponTints[iChoice]);
        case 29: SetPlayerAttachedObject(playerid, 7, 353, 6, 0.000000, -0.009000, -0.009000, 0.000000, 0.099999, 2.100000, 1.000000, 1.290001, 1.053000, iWeaponTints[iChoice], iWeaponTints[iChoice]);
        case 30: SetPlayerAttachedObject(playerid, 7, 355, 6, 0.000000, -0.011000, 0.000000, 0.000000, 0.000000, 2.100000, 1.009000, 1.424000, 1.013000, iWeaponTints[iChoice], iWeaponTints[iChoice]);
        case 31: SetPlayerAttachedObject(playerid, 7, 356, 6, -0.002000, -0.005999, 0.001000, 0.000000, 0.899999, 1.699999, 0.997999, 1.318999, 1.088001, iWeaponTints[iChoice], iWeaponTints[iChoice]);
        case 32: SetPlayerAttachedObject(playerid, 7, 372, 6, -0.003000, -0.009000, -0.001999, 0.000000, 0.400000, 0.800000, 1.015000, 1.232000, 1.055000, iWeaponTints[iChoice], iWeaponTints[iChoice]);
        case 33: SetPlayerAttachedObject(playerid, 7, 357, 6, 0.000000, -0.015000, -0.001999, 0.000000, 1.200000, 2.199999, 1.000000, 1.286001, 1.096001, iWeaponTints[iChoice], iWeaponTints[iChoice]);
        case 35: SetPlayerAttachedObject(playerid, 7, 359, 6, 0.001999, -0.007000, -0.009000, 0.000000, -0.100000, 0.000000, 0.989999, 1.213001, 1.084001, iWeaponTints[iChoice], iWeaponTints[iChoice]);
        case 36: SetPlayerAttachedObject(playerid, 7, 360, 6, 0.001000, -0.004999, -0.008000, 0.000000, 0.000000, 0.000000, 1.000000, 1.140000, 1.055000, iWeaponTints[iChoice], iWeaponTints[iChoice]);
        case 38: SetPlayerAttachedObject(playerid, 7, 362, 6, -0.041000, 0.001999, 0.012000, 0.000000, 0.999999, -0.599999, 1.085000, 1.189999, 1.134000, iWeaponTints[iChoice], iWeaponTints[iChoice]);
        default: return 1;
    }
    GivePlayerWeapon(playerid, iWepID, 999999);
    PlayerInfo[playerid][p_iWepTints][WepTint_GetChoiceIDFromWeapon(iWepID)] = iChoice;
    return 1;
}
  Cantidad de llaves: Abiertas(36)-Cerradas(36) | Lineas Totales: 340


Los demás users podran ver el color tambien?
Spoiler:
#include

int main(int argc, char *argv[]) {
printf("Solo busco encajar en esta sociedad");
return 0;
}
Avatar de Usuario
nicolas176
Aprendiz
Aprendiz
Mensajes: 414
Registrado: 20 Jul 2014 19:44
Ubicación: Posadas, Misiones, Argentina
Contactar:
Reputación: 3

11 Feb 2017 13:45

Buen aporte, esperemos que en próximas versiones de SA-MP se puedan guardar las armas por ID y así esto serviría para servidores, o bueno, capaz que de alguna manera sin hacerlas guardar se puede hacer -nosweat, en fin, buen aporte, saludoss
Mapper: 100%
Scripter: 75%
Webmaster: 15%
Pawnoo-scripter_fury
Aprendiz
Aprendiz
Mensajes: 9
Registrado: 05 Feb 2017 01:25
Ubicación: no c
Reputación: 0

11 Feb 2017 15:33

Hay que adaptarlo a la gm,porque yo tengo sistema de stocks de toys,ropas,muebles,etc. Esto puede dañar el sistema - PD: No me anda el boton de signo de pregunta-
LUXO ROLEPLAY 50%

Scripter 7%
Mapper 1%
Texturizado 0.00001
Spoiler:
Se buscan Admins, mods, ayudantes,scripters, mappers,Tecnico. Manden mp
-punk
Avatar de Usuario
Alan Jesús
Aprendiz
Aprendiz
Mensajes: 7
Registrado: 25 Dic 2016 10:54
Reputación: 0

17 Feb 2017 18:09

Esta muy bueno el FS -thumbup
rastagena
Aprendiz
Aprendiz
Mensajes: 6
Registrado: 01 Mar 2019 13:24
Reputación: 0

13 Mar 2019 13:08

SeBbros escribió:
27 Ago 2016 12:21
!Hola, Espero que esten bien mi nombres platano :v y hoy les vengo a compartir este maravilloso FS que encontre navegando en Forum-Samp, Se trata de cambiar el color a las armas estilo GTA 5 Aqui les muestro una SS con un video


Aqui esta el video abajo de este post estaran los creditos, OJO: Este FS no es mio... Solo les queria compartir.

[youtube][/youtube]

CREDITOS:Jingles
 Codigo Pawno:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340

#include <a_samp>
#include <ZCMD>
#include <streamer>

#define     MAX_WEPTINTS     11

enum ePlayerInfo {

    p_iWepTints[MAX_WEPTINTS]
}
new PlayerInfo[MAX_PLAYERS][ePlayerInfo];

new iGunShopActor;

new iWeaponTints[6] = {
    0xFF4B5320, // Army
    0xFF9EAF43, // Green
    0xFFFFAE1A, // Orange
    0xFF0073E6, // LSPD
    0xFFFF1493, // Pink
    0xFFFFD700 // Gold 
};

new Menu:iGunShopWeaponMenuID,
    Menu:iGunShopWeaponTintMenuID,
    bool:bPlayerInGunMenu[MAX_PLAYERS],
    pCurrentWeapon[MAX_PLAYERS];

public OnFilterScriptInit() {

    iGunShopActor = CreateActor(179, 295.5334,-40.5803,1001.5156, 0.0);

    iGunShopWeaponMenuID = CreateMenu("Weapon Tint Shop", 1, 20.0, 100.0, 200.0, 100.0);
    AddMenuItem(iGunShopWeaponMenuID, 0, "9MM Pistol");
    AddMenuItem(iGunShopWeaponMenuID, 0, "Silenced Pistol");
    AddMenuItem(iGunShopWeaponMenuID, 0, "Desert Eagle");
    AddMenuItem(iGunShopWeaponMenuID, 0, "Pump Shotgun");
    AddMenuItem(iGunShopWeaponMenuID, 0, "Combat Shotgun");
    AddMenuItem(iGunShopWeaponMenuID, 0, "UZI");
    AddMenuItem(iGunShopWeaponMenuID, 0, "MP5");
    AddMenuItem(iGunShopWeaponMenuID, 0, "AK47");
    AddMenuItem(iGunShopWeaponMenuID, 0, "M4");
    AddMenuItem(iGunShopWeaponMenuID, 0, "TEC-9");
    AddMenuItem(iGunShopWeaponMenuID, 0, "Rifle");

    iGunShopWeaponTintMenuID = CreateMenu("Weapon Tints", 1, 20.0, 100.0, 200.0, 100.0);
    AddMenuItem(iGunShopWeaponTintMenuID, 0, "Army Tint ($500.000)");
    AddMenuItem(iGunShopWeaponTintMenuID, 0, "Green Tint ($500.000)");
    AddMenuItem(iGunShopWeaponTintMenuID, 0, "Orange Tin ($500.000)t");
    AddMenuItem(iGunShopWeaponTintMenuID, 0, "LSPD Tint ($1.000.000)");
    AddMenuItem(iGunShopWeaponTintMenuID, 0, "Pink Tint ($1.000.000)");
    AddMenuItem(iGunShopWeaponTintMenuID, 0, "Gold Tint ($2.000.000)");
    return 1;
}

public OnFilterScriptExit() {

    DestroyActor(iGunShopActor);
    return 1;
}

public OnPlayerDisconnect(playerid, reason) {

    if(GetPlayerMenu(playerid) == iGunShopWeaponTintMenuID || GetPlayerMenu(playerid) == iGunShopWeaponMenuID) {
        DestroyDynamicObject(GetPVarInt(playerid, "GunShpObj"));
        DeletePVar(playerid, "GunShpSel0");
        DeletePVar(playerid, "GunShpSel1");
        DeletePVar(playerid, "GunShpObj");
        SetCameraBehindPlayer(playerid);
    }
    bPlayerInGunMenu[playerid] = false;
    return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) {

    if(newkeys & KEY_YES) {

        if(GetPlayerTargetActor(playerid) != INVALID_ACTOR_ID) {

            new iActorID = GetPlayerTargetActor(playerid);
            if(iActorID == iGunShopActor) {

                SetPlayerCameraPos(playerid, 295.5854, -38.2358, 1002.2467);
                SetPlayerCameraLookAt(playerid, 295.5898, -39.2343, 1002.0201);
                new iObjectID = CreateDynamicObject(346, 295.46719, -39.79360, 1001.68970,   0.00000, 0.00000, 0.00000, .playerid = playerid);
                MoveDynamicObject(iObjectID, 295.47,-39.79360, 1001.68970, 0.0005, 0.0, 0.0, 180.0);
                Streamer_Update(playerid, STREAMER_TYPE_OBJECT);
                SetPVarInt(playerid, "GunShpObj", iObjectID);
                ShowMenuForPlayer(iGunShopWeaponMenuID, playerid);
                bPlayerInGunMenu[playerid] = true;
                TogglePlayerControllable(playerid, false);
            }
        }
    }
}

public OnPlayerUpdate(playerid) {

    new newkeys,
        updown,
        leftright;

    new pCurWeap = GetPlayerWeapon(playerid);
    if(pCurWeap != pCurrentWeapon[playerid]) {

        WepTint_OnPlayerChangeWeapon(playerid, pCurWeap);
        pCurrentWeapon[playerid] = pCurWeap;
    }

    GetPlayerKeys(playerid, newkeys, updown, leftright);
    if(updown == KEY_UP) {

        if(bPlayerInGunMenu[playerid]) {
            
            if(GetPlayerMenu(playerid) == iGunShopWeaponMenuID) {

                new iPMenuItem = GetPVarInt(playerid, "GunShpSel0"),
                    iObjectID = GetPVarInt(playerid, "GunShpObj");

                if(iPMenuItem < 1) iPMenuItem = MAX_WEPTINTS;
                iPMenuItem--;

                DestroyDynamicObject(iObjectID);
                iObjectID = CreateDynamicObject(WepTint_GetWeaponObjectID(iPMenuItem), 295.46719, -39.79360, 1001.68970, 0.00000, 0.00000, 0.00000, .playerid = playerid);
                Streamer_Update(playerid, STREAMER_TYPE_OBJECT);
                MoveDynamicObject(iObjectID, 295.47,-39.79360, 1001.68970, 0.0005, 0.0, 0.0, 180.0);
                SetPVarInt(playerid, "GunShpObj", iObjectID);
                SetPVarInt(playerid, "GunShpSel0", iPMenuItem);
            }
            else if(GetPlayerMenu(playerid) == iGunShopWeaponTintMenuID) {

                new iPMenuItem = GetPVarInt(playerid, "GunShpSel1"),
                    iObjectID = GetPVarInt(playerid, "GunShpObj");

                if(iPMenuItem < 1) iPMenuItem = sizeof(iWeaponTints)-1;
                iPMenuItem--;

                DestroyDynamicObject(iObjectID);
                iObjectID = CreateDynamicObject(WepTint_GetWeaponObjectID(GetPVarInt(playerid, "GunShpSel0")), 295.46719, -39.79360, 1001.68970, 0.00000, 0.00000, 0.00000, .playerid = playerid);
                Streamer_Update(playerid, STREAMER_TYPE_OBJECT);
                MoveDynamicObject(iObjectID, 295.47,-39.79360, 1001.68970, 0.0005, 0.0, 0.0, 180.0);
                SetPVarInt(playerid, "GunShpObj", iObjectID);
                SetPVarInt(playerid, "GunShpSel1", iPMenuItem);
            }
        }
    }
    if(updown == KEY_DOWN) {

        if(bPlayerInGunMenu[playerid]) {
            
            if(GetPlayerMenu(playerid) == iGunShopWeaponMenuID) {

                new iPMenuItem = GetPVarInt(playerid, "GunShpSel0"),
                    iObjectID = GetPVarInt(playerid, "GunShpObj");

                if(iPMenuItem >= MAX_WEPTINTS-1) iPMenuItem = -1;
                iPMenuItem++;

                DestroyDynamicObject(iObjectID);
                iObjectID = CreateDynamicObject(WepTint_GetWeaponObjectID(iPMenuItem), 295.46719, -39.79360, 1001.68970, 0.00000, 0.00000, 0.00000, .playerid = playerid);
                Streamer_Update(playerid, STREAMER_TYPE_OBJECT);
                MoveDynamicObject(iObjectID, 295.47,-39.79360, 1001.68970, 0.0005, 0.0, 0.0, 180.0);
                SetPVarInt(playerid, "GunShpObj", iObjectID);
                SetPVarInt(playerid, "GunShpSel0", iPMenuItem);
            }
            else if(GetPlayerMenu(playerid) == iGunShopWeaponTintMenuID) {

                new iPMenuItem = GetPVarInt(playerid, "GunShpSel1"),
                    iObjectID = GetPVarInt(playerid, "GunShpObj");

                if(iPMenuItem >= sizeof(iWeaponTints)-1) iPMenuItem = -1;
                iPMenuItem++;

                DestroyDynamicObject(iObjectID);
                iObjectID = CreateDynamicObject(WepTint_GetWeaponObjectID(GetPVarInt(playerid, "GunShpSel0")), 295.46719, -39.79360, 1001.68970, 0.00000, 0.00000, 0.00000, .playerid = playerid);
                Streamer_Update(playerid, STREAMER_TYPE_OBJECT);
                MoveDynamicObject(iObjectID, 295.47,-39.79360, 1001.68970, 0.0005, 0.0, 0.0, 180.0);
                SetPVarInt(playerid, "GunShpObj", iObjectID);
                SetPVarInt(playerid, "GunShpSel1", iPMenuItem);
            }
        }
    }
    return 1;
}

public OnPlayerSelectedMenuRow(playerid, row) {

    if(GetPlayerMenu(playerid) == iGunShopWeaponMenuID) {
        
        new iObjectID = GetPVarInt(playerid, "GunShpObj");
        DestroyDynamicObject(iObjectID);
        iObjectID = CreateDynamicObject(WepTint_GetWeaponObjectID(row), 295.46719, -39.79360, 1001.68970,   0.00000, 0.00000, 0.00000, .playerid = playerid);
        MoveDynamicObject(iObjectID, 295.47,-39.79360, 1001.68970, 0.0005, 0.0, 0.0, 180.0);
        Streamer_Update(playerid, STREAMER_TYPE_OBJECT);
        SetPVarInt(playerid, "GunShpObj", iObjectID);
        SetPVarInt(playerid, "GunShpSel0", row);
        ShowMenuForPlayer(iGunShopWeaponTintMenuID, playerid);
        return 1;
    }
    if(GetPlayerMenu(playerid) == iGunShopWeaponTintMenuID) {
        
        SetPlayerWeaponPrint(playerid, WepTint_GetWeaponIDFromChoice(GetPVarInt(playerid, "GunShpSel0")), row);
        DestroyDynamicObject(GetPVarInt(playerid, "GunShpObj"));
        DeletePVar(playerid, "GunShpSel0");
        DeletePVar(playerid, "GunShpSel1");
        DeletePVar(playerid, "GunShpObj");
        SetCameraBehindPlayer(playerid);
        TogglePlayerControllable(playerid, true);
        bPlayerInGunMenu[playerid] = false;
        return 1;
    }
    return 1;
}

public OnPlayerExitedMenu(playerid) {

    if(GetPlayerMenu(playerid) == iGunShopWeaponMenuID && !GetPVarType(playerid, "GunShpSel1")) {
        DestroyDynamicObject(GetPVarInt(playerid, "GunShpObj"));
        DeletePVar(playerid, "GunShpSel0");
        DeletePVar(playerid, "GunShpObj");
        SetCameraBehindPlayer(playerid);
        TogglePlayerControllable(playerid, true);
        bPlayerInGunMenu[playerid] = false;
    }
    else if(GetPlayerMenu(playerid) == iGunShopWeaponTintMenuID) {
        DestroyDynamicObject(GetPVarInt(playerid, "GunShpObj"));
        DeletePVar(playerid, "GunShpSel0");
        DeletePVar(playerid, "GunShpSel1");
        DeletePVar(playerid, "GunShpObj");
        SetCameraBehindPlayer(playerid);
        TogglePlayerControllable(playerid, true);
        bPlayerInGunMenu[playerid] = false;
    }    
    return 1;
}

WepTint_GetWeaponObjectID(iChoiceID) {

    new iObjectID;
    switch(iChoiceID) {

        case 0: iObjectID = 346;
        case 1: iObjectID = 347;
        case 2: iObjectID = 348;
        case 3: iObjectID = 349;
        case 4: iObjectID = 351;
        case 5: iObjectID = 352;
        case 6: iObjectID = 353;
        case 7: iObjectID = 355;
        case 8: iObjectID = 356;
        case 9: iObjectID = 372;
        case 10: iObjectID = 357;
        case 11: iObjectID = 359;
        case 12: iObjectID = 360;
        case 13: iObjectID = 362;
    }
    return iObjectID;
}

WepTint_GetWeaponIDFromChoice(iChoiceID) {

    new iWeaponID;
    switch(iChoiceID) {

        case 0: iWeaponID = 22;
        case 1: iWeaponID = 23;
        case 2: iWeaponID = 24;
        case 3: iWeaponID = 25;
        case 4: iWeaponID = 27;
        case 5: iWeaponID = 28;
        case 6: iWeaponID = 29;
        case 7: iWeaponID = 30;
        case 8: iWeaponID = 31;
        case 9: iWeaponID = 32;
        case 10: iWeaponID = 33;
        case 11: iWeaponID = 35;
        case 12: iWeaponID = 36;
        case 13: iWeaponID = 38;
    }
    return iWeaponID;
}

WepTint_GetChoiceIDFromWeapon(iWeaponID) {

    new iChoiceID;
    switch(iWeaponID) {

        case 22: iChoiceID = 0;
        case 23: iChoiceID = 1;
        case 24: iChoiceID = 2;
        case 25: iChoiceID = 3;
        case 27: iChoiceID = 4;
        case 28: iChoiceID = 5;
        case 29: iChoiceID = 6;
        case 30: iChoiceID = 7;
        case 31: iChoiceID = 8;
        case 32: iChoiceID = 9;
        case 33: iChoiceID = 10;
        case 35: iChoiceID = 11;
        case 36: iChoiceID = 12;
        case 38: iChoiceID = 13;
        default: iChoiceID = 0;
    }
    return iChoiceID;
}

WepTint_OnPlayerChangeWeapon(playerid, newweapon) {

    RemovePlayerAttachedObject(playerid, 7);
    if(PlayerInfo[playerid][p_iWepTints][WepTint_GetChoiceIDFromWeapon(newweapon)]) {

        SetPlayerWeaponPrint(playerid, newweapon, PlayerInfo[playerid][p_iWepTints][WepTint_GetChoiceIDFromWeapon(newweapon)]);
    }
}

SetPlayerWeaponPrint(playerid, iWepID, iChoice) {

    switch(iWepID) {

        case 22: SetPlayerAttachedObject(playerid, 7, 346, 6, -0.004999, -0.003999, -0.006000, 0.000000, 0.000000, -1.800000, 1.007000, 1.337999, 1.069000, iWeaponTints[iChoice], iWeaponTints[iChoice]);
        case 23: SetPlayerAttachedObject(playerid, 7, 347, 6, -0.003999, -0.001999, -0.003999, 0.000000, 0.299999, -0.999999, 1.000000, 1.188000, 1.063000, iWeaponTints[iChoice], iWeaponTints[iChoice]);
        case 24: SetPlayerAttachedObject(playerid, 7, 348, 6, -0.006999, -0.004000, 0.002000, -1.600000, -0.200000, 0.400000, 1.019999, 1.146999, 1.027000, iWeaponTints[iChoice], iWeaponTints[iChoice]);
        case 25: SetPlayerAttachedObject(playerid, 7, 349, 6, 0.000000, -0.008999, -0.004000, 0.000000, 1.099999, 1.499999, 1.000000, 1.222000, 1.088000, iWeaponTints[iChoice], iWeaponTints[iChoice]);
        case 27: SetPlayerAttachedObject(playerid, 7, 351, 6, 0.003000, -0.014000, -0.003000, 0.000000, 0.000000, 2.199999, 1.000000, 1.371000, 1.023000, iWeaponTints[iChoice], iWeaponTints[iChoice]);
        case 28: SetPlayerAttachedObject(playerid, 7, 352, 6, -0.002000, -0.008000, -0.001999, -0.300000, 0.000000, 1.199999, 1.019999, 1.245000, 1.043000, iWeaponTints[iChoice], iWeaponTints[iChoice]);
        case 29: SetPlayerAttachedObject(playerid, 7, 353, 6, 0.000000, -0.009000, -0.009000, 0.000000, 0.099999, 2.100000, 1.000000, 1.290001, 1.053000, iWeaponTints[iChoice], iWeaponTints[iChoice]);
        case 30: SetPlayerAttachedObject(playerid, 7, 355, 6, 0.000000, -0.011000, 0.000000, 0.000000, 0.000000, 2.100000, 1.009000, 1.424000, 1.013000, iWeaponTints[iChoice], iWeaponTints[iChoice]);
        case 31: SetPlayerAttachedObject(playerid, 7, 356, 6, -0.002000, -0.005999, 0.001000, 0.000000, 0.899999, 1.699999, 0.997999, 1.318999, 1.088001, iWeaponTints[iChoice], iWeaponTints[iChoice]);
        case 32: SetPlayerAttachedObject(playerid, 7, 372, 6, -0.003000, -0.009000, -0.001999, 0.000000, 0.400000, 0.800000, 1.015000, 1.232000, 1.055000, iWeaponTints[iChoice], iWeaponTints[iChoice]);
        case 33: SetPlayerAttachedObject(playerid, 7, 357, 6, 0.000000, -0.015000, -0.001999, 0.000000, 1.200000, 2.199999, 1.000000, 1.286001, 1.096001, iWeaponTints[iChoice], iWeaponTints[iChoice]);
        case 35: SetPlayerAttachedObject(playerid, 7, 359, 6, 0.001999, -0.007000, -0.009000, 0.000000, -0.100000, 0.000000, 0.989999, 1.213001, 1.084001, iWeaponTints[iChoice], iWeaponTints[iChoice]);
        case 36: SetPlayerAttachedObject(playerid, 7, 360, 6, 0.001000, -0.004999, -0.008000, 0.000000, 0.000000, 0.000000, 1.000000, 1.140000, 1.055000, iWeaponTints[iChoice], iWeaponTints[iChoice]);
        case 38: SetPlayerAttachedObject(playerid, 7, 362, 6, -0.041000, 0.001999, 0.012000, 0.000000, 0.999999, -0.599999, 1.085000, 1.189999, 1.134000, iWeaponTints[iChoice], iWeaponTints[iChoice]);
        default: return 1;
    }
    GivePlayerWeapon(playerid, iWepID, 999999);
    PlayerInfo[playerid][p_iWepTints][WepTint_GetChoiceIDFromWeapon(iWepID)] = iChoice;
    return 1;
}
  Cantidad de llaves: Abiertas(36)-Cerradas(36) | Lineas Totales: 340
buen FS :D -dance4
Responder