Fala Galera!
GabrielLoko157 De Volta
Eu já fiz o Tutorial de como Colocar no gamemode
MaisEu não soueu.
Sem Mas Delongas (Sempre quis falar isso = D)
ta ai o FS:
- Código:
#include <a_samp>
#define MaxVuln 100
#define COLOR_RED 0xAA3333AA
Novo Texto: Textdraw0;
Novo Texto: Textdraw1;
Novo Texto: Textdraw2;
Novo Texto: Textdraw3;
Novo Texto: Textdraw4;
Novo Texto: Textdraw5;
Frente Atualizar (playerid);
Novo Vuln [MAX_VEHICLES];
Public OnFilterScriptInit ()
{
Imprimir ("(Blindagem System FS Por: gabrielloko157)");
Impressão ("(Blindagem System Carregado com sucesso!)");
// Criar o textdraws:
Textdraw0 = TextDrawCreate (530.000000, 191.000000, ".");
TextDrawBackgroundColor (Textdraw0, 255);
TextDrawFont (Textdraw0, 1);
TextDrawLetterSize (Textdraw0, 0.119999, 25.500061);
TextDrawColor (Textdraw0, -16776961);
TextDrawSetOutline (Textdraw0, 0);
TextDrawSetProportional (Textdraw0, 1);
TextDrawSetShadow (Textdraw0, 1);
Textdraw1 = TextDrawCreate (590.000000, 190.000000, ".");
TextDrawBackgroundColor (Textdraw1, 255);
TextDrawFont (Textdraw1, 1);
TextDrawLetterSize (Textdraw1, 0.119999, 25.600061);
TextDrawColor (Textdraw1, -16776961);
TextDrawSetOutline (Textdraw1, 0);
TextDrawSetProportional (Textdraw1, 1);
TextDrawSetShadow (Textdraw1, 1);
Textdraw2 = TextDrawCreate (533.000000, 338.000000, "Blindagem");
TextDrawBackgroundColor (Textdraw2, 255);
TextDrawFont (Textdraw2, 1);
TextDrawLetterSize (Textdraw2, 0,329999, 2,399999);
TextDrawColor (Textdraw2, 16711935);
TextDrawSetOutline (Textdraw2, 1);
TextDrawSetProportional (Textdraw2, 1);
Textdraw3 = TextDrawCreate (537.000000, 366.000000, ".");
TextDrawBackgroundColor (Textdraw3, 255);
TextDrawFont (Textdraw3, 1);
TextDrawLetterSize (Textdraw3, 0.559999, 1.800000);
TextDrawColor (Textdraw3, 16711935);
TextDrawSetOutline (Textdraw3, 1);
TextDrawSetProportional (Textdraw3, 1);
Textdraw4 = TextDrawCreate (527.000000, 336.000000, "i");
TextDrawBackgroundColor (Textdraw4, 255);
TextDrawFont (Textdraw4, 1);
TextDrawLetterSize (Textdraw4, 7,789994, 0,200000);
TextDrawColor (Textdraw4, - 16776961);
TextDrawSetOutline (Textdraw4, 0);
TextDrawSetProportional (Textdraw4, 1);
TextDrawSetShadow (Textdraw4, 1);
Textdraw5 = TextDrawCreate (528.000000, 385.000000, "i");
TextDrawBackgroundColor (Textdraw5, 255);
TextDrawFont (Textdraw5, 1);
TextDrawLetterSize (Textdraw5, 7,789994, 0,200000);
TextDrawColor (Textdraw5, -16776961);
TextDrawSetOutline (Textdraw5, 0);
TextDrawSetProportional (Textdraw5, 1);
TextDrawSetShadow (Textdraw5, 1);
Return 1;
}
Public OnPlayerCommandText (playerid, cmdtext []) {
If (strcmp (cmdtext, "/ blindar", true) == 0) {
New vehicleid = GetPlayerVehicleID (playerid);
Vuln [veículo] = MaxVuln;
}
Return 1;
}
Public OnFilterScriptExit ()
{
TextDrawHideForAll (Textdraw0);
TextDrawDestroy (Textdraw0);
TextDrawHideForAll (Textdraw1);
TextDrawDestroy (Textdraw1);
TextDrawHideForAll (Textdraw2);
TextDrawDestroy (Textdraw2);
TextDrawHideForAll (Textdraw3);
TextoDrawDestroy (Textdraw3);
TextDrawHideForAll (Textdraw4);
TextDrawDestroy (Textdraw4);
TextDrawHideForAll (Textdraw5);
TextDrawDestroy (Textdraw5);
Return 1;
}
Public OnPlayerStateChange (playerid, newstate, oldstate)
{
Novo Tempo [MAX_PLAYERS];
If (newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
{
TextDrawShowForPlayer (playerid, Textdraw0);
TextDrawShowForPlayer (playerid, Textdraw1);
TextDrawShowForPlayer (playerid, Textdraw2);
TextDrawShowForPlayer (playerid, Textdraw3);
TextDrawShowForPlayer (playerid, Textdraw4);
TextDrawShowForPlayer (playerid, Textdraw5);
Tempo [playerid] = SetTimer ("Atualizar", 300, true);
}
Else if (oldstate == PLAYER_STATE_DRIVER || oldstate == PLAYER_STATE_PASSENGER)
{
TextDrawHideForPlayer (playerid, Textdraw0);
TextDrawHideForPlayer (playerid, Textdraw1);
TextDrawHideForPlayer (playerid, Textdraw2);
TextDrawHideForPlayer (playerid, Textdraw3);
TextDrawHideForPlayer (playerid, Textdraw4);
TextDrawHideForPlayer (playerid, Textdraw5);
KillTimer (Tempo [playerid]);
}
Return 0;
}
Público Atualizar (playerid)
{
New vehicleid = GetPlayerVehicleID (playerid);
Nova blindagem [41];
Formato (blindagem, tamanho de (blindagem), "% d%", Vuln [veículo]);
TextDrawSetString (Textdraw3, blindagem);
TextDrawShowForPlayer (vehicleid, Textdraw3);
Return 1;
}
Public OnVehicleDamageStatusUpdate (vehicleid, playerid) {
Se (Vuln [veículo]> 0) {
Vuln [veículo] -;
Veículo de reparação (veículo);
}
Return true;
}
Baixar
Pastebin:
Pastebin
Breve Video e Pastebin!
Uso & Abuso!
Creditos : gabrielloko15 7 (Criação do Sistema)
************** Don_SpeeD (Por Me Ajudar Com um Público)