[PEDIDO] Carros particulares
#1

Galera queria queria que alguйm poderia fazer esses carros particulares para gang groove mim ter como ideia se alguйm poder me ajudar muito obrigado.

Код:
AddStaticVehicleEx(560,2499.41040039,-1680.92236328,13.04005051,0.00000000,86,1,90000); //Sultan
AddStaticVehicleEx(560,2494.81127930,-1681.11352539,13.04005051,2.00000000,86,1,90000); //Sultan
AddStaticVehicleEx(560,2489.79638672,-1681.34619141,13.04005051,1.99951172,86,1,90000); //Sultan
AddStaticVehicleEx(562,2507.27392578,-1670.10571289,13.08026409,92.00000000,86,1,90000); //Elegy
AddStaticVehicleEx(562,2504.07885742,-1666.17846680,13.08026409,91.99951172,86,1,90000); //Elegy
AddStaticVehicleEx(562,2504.56982422,-1673.92065430,13.08026409,91.99951172,86,1,90000); //Elegy
AddStaticVehicleEx(522,2498.65405273,-1656.20605469,13.05196571,137.99987793,86,86,90000); //NRG-500
AddStaticVehicleEx(522,2500.53930664,-1657.57763672,13.05196571,139.99926758,86,86,90000); //NRG-500
AddStaticVehicleEx(522,2498.14355469,-1658.64672852,13.05196571,139.99877930,86,86,90000); //NRG-500
AddStaticVehicleEx(581,2483.18188477,-1690.57238770,13.05413055,0.00000000,86,86,90000); //BF-400
AddStaticVehicleEx(581,2481.21093750,-1690.91796875,13.05413055,0.00000000,86,86,90000); //BF-400
AddStaticVehicleEx(487,2528.72656250,-1677.44262695,19.98372459,89.50000000,86,86,90000); //Maverick
AddStaticVehicleEx(440,2483.32397461,-1654.93896484,13.54863644,90.75000000,86,1,90000); //Rumpo
AddStaticVehicleEx(469,2480.89770508,-1676.06115723,13.44375038,2.00000000,86,86,90000); //Sparrow
Reply
#2

Topo do GM
pawn Код:
forward IsAGroove(playerid);
forward IsAGrooveCar(carid);
public OnPlayerStateChange(playerid, newstate, oldstate)

pawn Код:
else if(IsAGrooveCar(newcar))
            {
                if(!IsAGroove(playerid))
                {
                    SendClientMessage(playerid, COR_GRO, "Vocк nгo й da Groove Street, por isso nгo tem a chave desse veнculo !");
                    RemovePlayerFromVehicleEx(playerid);
                }
            }
Fim ou Inicio do GM
pawn Код:
public IsAGroove(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        new lider = PlayerInfo[playerid][pLider];
        new member = PlayerInfo[playerid][pMembro];
        if(member==Id da Org || member==Id da Org)
        {
            return true;
        }
        else if(lider==Id da Org || lider==id da Org)
        {
            return true;
        }
    }
    return 0;
}
Inicio ou Fim do GM
pawn Код:
public IsAGrooveCar(carid)
{
    if((carid >= Id do 1 carro da ORG) && (carid <= Id do ultimo carro da Org))//Exemplo, if((carid >= 1) && (carid <= 24))
    {
        return true;
    }
    return 0;
}
Reply
#3

Tente assim

Topo do GameMode
PHP код:
new GroveCars[5]; 
Agora na public OnGameModeInit
PHP код:
GroveCars[0] = AddStaticVehicleEx(560,2499.41040039,-1680.92236328,13.04005051,0.00000000,86,1,90000); //Sultan
GroveCars[1] = AddStaticVehicleEx(560,2494.81127930,-1681.11352539,13.04005051,2.00000000,86,1,90000);
GroveCars[2] = AddStaticVehicleEx(560,2489.79638672,-1681.34619141,13.04005051,1.99951172,86,1,90000
Vб colocando assim por diante, mudando o nъmero [3], [4]... e colocando os veiculos na frente no mesmo geito do exemplo..


Agora na public OnPlayerStateChange
PHP код:
if(vid==GroveCars[0]||||vid==GroveCars[1])
 {
   if(
Profissao[playerid] == GROVE//troca pelo o que voce colocou no new para fazer org/profissao
  
{
  }
  else
 {
  
SendClientMessage(playerid,VERDE,"Vocк nгo tem a chave desse veiculo");
  
RemovePlayerFromVehicle(playerid);
  
TogglePlayerControllable(playerid1);
  }
}
    return 
1;

Crйditos: humildadeforever.
Reply
#4

Fiz o segundo exemplo e fiquei com esses erros

Код:
C:\Documents and Settings\thaw\Desktop\0.3d\gamemodes\GW1.pwn(684) : warning 202: number of arguments does not match definition
C:\Documents and Settings\thaw\Desktop\0.3d\gamemodes\GW1.pwn(1269) : error 017: undefined symbol "vid"
C:\Documents and Settings\thaw\Desktop\0.3d\gamemodes\GW1.pwn(1269) : error 017: undefined symbol "vid"
C:\Documents and Settings\thaw\Desktop\0.3d\gamemodes\GW1.pwn(1269) : error 017: undefined symbol "vid"
a warning nгo й desse cуdigo e de outro fiquei com erro sу no vid se derem para ajudar obrigado
Reply
#5

Adicione isso ao Seu GameMode
PHP код:
new vid GetPlayerVehicleID(playerid); 
Reply
#6

botei isso e pega e da um negocio no pawno, aquele negocio pawno encontrou um problema e precisa ser fechado o que seria isso ??
Reply
#7

Quote:
Originally Posted by thaw_ps
Посмотреть сообщение
botei isso e pega e da um negocio no pawno, aquele negocio pawno encontrou um problema e precisa ser fechado o que seria isso ??
normalmente, й frescura do compilador pawno msm.. as vezes da isso mesmo, abre de novo e tenta compilar novamente.

eu costumo usar o IFP, ou o PawnSciTE, pra escrever os codigos.
Reply
#8

Tente colocar acima do
PHP код:
if(vid==GroveCars[0]||||vid==GroveCars[1]) 
Reply
#9

Que raiva : Mad: Agora deu esses erros

Код:
C:\Documents and Settings\thaw\Desktop\0.3d\gamemodes\GW1.pwn(685) : warning 202: number of arguments does not match definition
C:\Documents and Settings\thaw\Desktop\0.3d\gamemodes\GW1.pwn(1271) : error 029: invalid expression, assumed zero
C:\Documents and Settings\thaw\Desktop\0.3d\gamemodes\GW1.pwn(1271) : error 029: invalid expression, assumed zero
C:\Documents and Settings\thaw\Desktop\0.3d\gamemodes\GW1.pwn(1271) : warning 215: expression has no effect
C:\Documents and Settings\thaw\Desktop\0.3d\gamemodes\GW1.pwn(1271) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\thaw\Desktop\0.3d\gamemodes\GW1.pwn(1271) : fatal error 107: too many error messages on one line
O erro й aqui

Код:
if(vid==GroveCars[0]||||vid==GroveCars[1]|||vid==GroveCars[2])
Reply
#10

Quote:
Originally Posted by thaw_ps
Посмотреть сообщение
Que raiva : Mad: Agora deu esses erros

Код:
C:\Documents and Settings\thaw\Desktop\0.3d\gamemodes\GW1.pwn(685) : warning 202: number of arguments does not match definition
C:\Documents and Settings\thaw\Desktop\0.3d\gamemodes\GW1.pwn(1271) : error 029: invalid expression, assumed zero
C:\Documents and Settings\thaw\Desktop\0.3d\gamemodes\GW1.pwn(1271) : error 029: invalid expression, assumed zero
C:\Documents and Settings\thaw\Desktop\0.3d\gamemodes\GW1.pwn(1271) : warning 215: expression has no effect
C:\Documents and Settings\thaw\Desktop\0.3d\gamemodes\GW1.pwn(1271) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\thaw\Desktop\0.3d\gamemodes\GW1.pwn(1271) : fatal error 107: too many error messages on one line
O erro й aqui

Код:
if(vid==GroveCars[0]||||vid==GroveCars[1]|||vid==GroveCars[2])
troca essa linha:

pawn Код:
if(vid==GroveCars[0]||||vid==GroveCars[1]|||vid==GroveCars[2])
por essa:

pawn Код:
if(vid==GroveCars[0] || vid==GroveCars[1] || vid==GroveCars[2])
e posta a linha 1270, pode estar faltando uma ; lб.

#edit, num vi q o Đeagle ja tinha postado.. ^^ heh sorry.
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)