[PEDIDOS] drift
#1

Olб, gostaria de comandos de drifts, exemplo :

nitro que nunca acaba
Auto reparar
Quando o carro virar ele automaticamente desvirar..


+ Reputation pra quem arranjar esses 3 . :}

Vo almoзar, dps vejo as respostas
Reply
#2

Search .
Sу topicos de ajuda meu, ja resolve 2 problemas seu .
Reply
#3

pawn Код:
if(strcmp(cmdtext, "/flip", true) == 0)
{
    new Float:X, Float:Y, Float:Z;
    if(IsPlayerInAnyVehicle(playerid))
    {
        SetCameraBehindPlayer(playerid);
        GetPlayerPos(playerid, X, Y, Z);
        SetVehiclePos(GetPlayerVehicleID(playerid), X, Y, Z);
        SetVehicleZAngle(GetPlayerVehicleID(playerid), 0);
    }
    return 1;
}

if (!strcmp("/reparar", cmdtext))
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        RepairVehicle(GetPlayerVehicleID(playerid));
        SendClientMessage(playerid, -1 "Seu Veiculo Foi Reparado!");
    }
    else SendClientMessage(playerid,-1, "Voce nao estб no veiculo!");
    return 1;
}

if(!strcmp("/nitro",cmdtext))
{
if(IsPlayerInAnyVehicle(playerid)) return NitroInfinito(playerid);
else SendClientMessage(playerid,-1,"Vocк nгo esta em um veiculo");
}

forward NitroInfinito(playerid);
public NitroInfinito(playerid)
{
    AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
    SetTimerEx("NitroInfinito",10000,0,"i",playerid);
    return 0;
}
Esta ai tudo (: espero ter ajudado, agora espero que vocк seja amigo e me de reputaзгo ()
Reply
#4

1Є Nitro Infinito -
pawn Код:
#include <a_samp>
#define COLOR_ZIELONY 0xFF00FF

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(Nitro(vehicleid))
    {
        AddVehicleComponent(vehicleid, 1010);
    }
    return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        new nos = GetPlayerVehicleID(playerid);
        if(Nitro(nos) && (oldkeys & 1 || oldkeys & 4))
        {
            RemoveVehicleComponent(nos, 1010);
            AddVehicleComponent(nos, 1010);
        }
    }
    return 1;
}

public OnPlayerConnect(playerid)
{
    SendClientMessage(playerid, COLOR_ZIELONY, "Server using 'Need For Speed Nitro' By Ekwador");
    return 0;
}

stock Nitro(vehicleid)
{
   switch(GetVehicleModel(vehicleid))
   {
     case
          444, 581, 586, 481, 509, 446, 556, 443, 452, 453, 454, 472,
          473, 484, 493, 495, 462, 463, 468, 521, 522, 417, 425, 447,
          488, 497, 501, 548, 563, 406, 520, 539, 553, 557, 573, 460,
          464, 476, 511, 512, 577, 592, 471, 448, 461, 523, 510, 487,
          430, 465, 469, 513, 593, 419:
          return false ;
   }
   return true ;
}
Crйditos: Equador, editado por Caroline.



2Є auto - reparar:
pawn Код:
#include <a_samp>

public OnGameModeInit()
{
    SetTimer("Reparar", 1000, true);
    return 1;
}


forward Reparar(playerid);
public Reparar(playerid)
{
    RepairVehicle(GetPlayerVehicleID(playerid));
    return 1;
}
3 - Nгo possнvel(eu pelo menos nunca vн). sу em mod.

Espero ter ajudado vocк *-*
Reply
#5

BlueX e [O.z]Caroline

+ Reputation pra vocкs *-*

Muito obrigado :}
Reply
#6

Quote:
Originally Posted by [O.z]Caroline
Посмотреть сообщение
1Є Nitro Infinito -
pawn Код:
#include <a_samp>
#define COLOR_ZIELONY 0xFF00FF

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(Nitro(vehicleid))
    {
        AddVehicleComponent(vehicleid, 1010);
    }
    return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        new nos = GetPlayerVehicleID(playerid);
        if(Nitro(nos) && (oldkeys & 1 || oldkeys & 4))
        {
            RemoveVehicleComponent(nos, 1010);
            AddVehicleComponent(nos, 1010);
        }
    }
    return 1;
}

public OnPlayerConnect(playerid)
{
    SendClientMessage(playerid, COLOR_ZIELONY, "Server using 'Need For Speed Nitro' By Ekwador");
    return 0;
}

stock Nitro(vehicleid)
{
   switch(GetVehicleModel(vehicleid))
   {
     case
          444, 581, 586, 481, 509, 446, 556, 443, 452, 453, 454, 472,
          473, 484, 493, 495, 462, 463, 468, 521, 522, 417, 425, 447,
          488, 497, 501, 548, 563, 406, 520, 539, 553, 557, 573, 460,
          464, 476, 511, 512, 577, 592, 471, 448, 461, 523, 510, 487,
          430, 465, 469, 513, 593, 419:
          return false ;
   }
   return true ;
}
Crйditos: Equador, editado por Caroline.



2Є auto - reparar:
pawn Код:
#include <a_samp>

public OnGameModeInit()
{
    SetTimer("Reparar", 1000, true);
    return 1;
}


forward Reparar(playerid);
public Reparar(playerid)
{
    RepairVehicle(GetPlayerVehicleID(playerid));
    return 1;
}
3 - Nгo possнvel(eu pelo menos nunca vн). sу em mod.

Espero ter ajudado vocк *-*
So que deu este seguinte erro :

pawn Код:
C:\Documents and Settings\Escolas\Desktop\gamemodes\Drift.pwn(104) : error 017: undefined symbol "Nitro"
C:\Documents and Settings\Escolas\Desktop\gamemodes\Drift.pwn(202) : error 017: undefined symbol "Nitro"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
Reply
#7

bote no final:

pawn Код:
stock Nitro(vehicleid)
{
   switch(GetVehicleModel(vehicleid))
   {
     case
          444, 581, 586, 481, 509, 446, 556, 443, 452, 453, 454, 472,
          473, 484, 493, 495, 462, 463, 468, 521, 522, 417, 425, 447,
          488, 497, 501, 548, 563, 406, 520, 539, 553, 557, 573, 460,
          464, 476, 511, 512, 577, 592, 471, 448, 461, 523, 510, 487,
          430, 465, 469, 513, 593, 419:
          return false ;
   }
   return true ;
}
Reply
#8

Ae foi -q


Eu que tinha arrumado errado, agora que fui ver.. ;S


Muito obrigado *-*
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)