SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Română/Romanian

Reply
 
Thread Tools Display Modes
Old 06/02/2017, 12:18 PM   #1
GabiXx
Huge Clucker
 
GabiXx's Avatar
 
Join Date: Aug 2014
Location: Constanta, Romania
Posts: 221
Reputation: 0
Default Problema /fvrespawn la Los Vagos

Am o problema la fvrespawn la factiunea Los Vagos, mi se respawneaza doar o masina.
Va lasa aici codul:
PHP Code:
CMD:fvrespawn(playeridparams[])
{
    if(
gPlayerLogged[playerid] == 0) return SendClientMessage(playeridCOLOR_LIGHTRED"Trebuie sa te loghezi prima data.");
    if(
IsPlayerConnected(playerid))
       {
          if(
PlayerInfo[playerid][pLeader] >= ||PlayerInfo[playerid][pRank] >=6)
          {
              if(
PlayerInfo[playerid][pMember] == && PlayerInfo[playerid][pRank] >=6)//PD
              
{
                new 
string[256], sendername[30];
                new 
bool:unwanted[CAR_AMOUNT];
                for(new 
player=0player<MAX_PLAYERSplayer++)
                  {
                    if(
IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
                  }
                for(new 
Copcar[1]; <= Copcar[29]; v++)
                {
                    if(!
unwanted[v]) SetVehicleToRespawn(v);
                    
Gas[v] = 100;
                }
                
SCM(playerid,COLOR_WHITE,"{FFFFCC}All faction cars respawn.");
                
GetPlayerName(playeridsendernamesizeof(sendername));
                
format(string256"{CAE1E2}Your faction's vehicles were respawned by %s."sendername);
                   
SendFamilyMessage(PlayerInfo[playerid][pMember],COLOR_GENANNOUNCE,string);
              }
              if(
PlayerInfo[playerid][pMember] == && PlayerInfo[playerid][pRank] >=6)//FBI
              
{
                new 
string[256], sendername[30];
                new 
bool:unwanted[CAR_AMOUNT];
                for(new 
player=0player<MAX_PLAYERSplayer++)
                  {
                    if(
IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
                  }
                for(new 
Fbicar[1]; <= Fbicar[16]; v++)
                {
                    if(!
unwanted[v]) SetVehicleToRespawn(v);
                    
Gas[v] = 100;
                }
                
SCM(playerid,COLOR_WHITE,"{FFFFCC}All faction cars respawn.");
                
GetPlayerName(playeridsendernamesizeof(sendername));
                
format(string256"{CAE1E2}Your faction's vehicles were respawned by %s."sendername);
                   
SendFamilyMessage(PlayerInfo[playerid][pMember],COLOR_GENANNOUNCE,string);
              }
              if(
PlayerInfo[playerid][pMember] == && PlayerInfo[playerid][pRank] >=6)// NG
              
{
                new 
string[256], sendername[30];
                new 
bool:unwanted[CAR_AMOUNT];
                for(new 
player=0player<MAX_PLAYERSplayer++)
                  {
                    if(
IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
                  }
                for(new 
Ngcar[1]; <= Ngcar[19]; v++)
                {
                    if(!
unwanted[v]) SetVehicleToRespawn(v);
                    
Gas[v] = 100;
                }
                
SCM(playerid,COLOR_WHITE,"{FFFFCC}All faction cars respawn.");
                
GetPlayerName(playeridsendernamesizeof(sendername));
                
format(string256"{CAE1E2}Your faction's vehicles were respawned by %s."sendername);
                   
SendFamilyMessage(PlayerInfo[playerid][pMember],COLOR_GENANNOUNCE,string);
              }
              if(
PlayerInfo[playerid][pMember] == && PlayerInfo[playerid][pRank] >=6)//Los Aztecas
              
{
                new 
string[256], sendername[30];
                new 
bool:unwanted[CAR_AMOUNT];
                for(new 
player=0player<MAX_PLAYERSplayer++)
                  {
                        if(
IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
                  }
                for(new 
Aztecasc[1]; <= Aztecasc[14]; v++)
                {
                    if(!
unwanted[v]) SetVehicleToRespawn(v);
                    
SetVehicleVirtualWorld(Aztecasc[v], 0);
                    
Gas[v] = 100;
                }
                
SCM(playerid,COLOR_WHITE,"{FFFFCC}All faction cars respawn.");
                
GetPlayerName(playeridsendernamesizeof(sendername));
                
format(string256"{CAE1E2}Your faction's vehicles were respawned by %s."sendername);
                   
SendFamilyMessage(PlayerInfo[playerid][pMember],COLOR_GENANNOUNCE,string);
              }
              if(
PlayerInfo[playerid][pMember] == && PlayerInfo[playerid][pRank] >=6)//GP
              
{
                new 
string[256], sendername[30];
                new 
bool:unwanted[CAR_AMOUNT];
                for(new 
player=0player<MAX_PLAYERSplayer++)
                  {
                    if(
IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
                  }
                for(new 
Grovec[1]; <= Grovec[11]; v++)
                {
                    if(!
unwanted[v]) SetVehicleToRespawn(v);
                    
SetVehicleVirtualWorld(Grovec[v], 0);
                    
Gas[v] = 100;
                }
                
SCM(playerid,COLOR_WHITE,"{FFFFCC}All faction cars respawn.");
                
GetPlayerName(playeridsendernamesizeof(sendername));
                
format(string256"{CAE1E2}Your faction's vehicles were respawned by %s."sendername);
                   
SendFamilyMessage(PlayerInfo[playerid][pMember],COLOR_GENANNOUNCE,string);
              }
              if(
PlayerInfo[playerid][pMember] == && PlayerInfo[playerid][pRank] >=6)//Los Vagost
              
{
                new 
string[256], sendername[30];
                new 
bool:unwanted[CAR_AMOUNT];
                for(new 
player=0player<MAX_PLAYERSplayer++)
                  {
                        if(
IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
                  }
                for(new 
Vagosc[1]; <= Vagosc[11]; v++)
                {
                    if(!
unwanted[v]) SetVehicleToRespawn(v);
                    
SetVehicleVirtualWorld(Vagosc[v], 0);
                    
Gas[v] = 100;
                }
                
SCM(playerid,COLOR_WHITE,"{FFFFCC}All faction cars respawn.");
                
GetPlayerName(playeridsendernamesizeof(sendername));
                
format(string256"{CAE1E2}Your faction's vehicles were respawned by %s."sendername);
                   
SendFamilyMessage(PlayerInfo[playerid][pMember],COLOR_GENANNOUNCE,string);
              }
              if(
PlayerInfo[playerid][pMember] == && PlayerInfo[playerid][pRank] >=6)//LVPD
              
{
                new 
string[256], sendername[30];
                new 
bool:unwanted[CAR_AMOUNT];
                for(new 
player=0player<MAX_PLAYERSplayer++)
                  {
                    if(
IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
                  }
                for(new 
LVpdcar[1]; <= LVpdcar[40]; v++)
                {
                    if(!
unwanted[v]) SetVehicleToRespawn(v);
                    
Gas[v] = 100;
                }
                
SCM(playerid,COLOR_WHITE,"{FFFFCC}All faction cars respawn.");
                
GetPlayerName(playeridsendernamesizeof(sendername));
                
format(string256"{CAE1E2}Your faction's vehicles were respawned by %s."sendername);
                   
SendFamilyMessage(PlayerInfo[playerid][pMember],COLOR_GENANNOUNCE,string);
              }
              if(
PlayerInfo[playerid][pMember] == && PlayerInfo[playerid][pRank] >=6)// NR
              
{
                new 
string[256], sendername[30];
                new 
bool:unwanted[CAR_AMOUNT];
                for(new 
player=0player<MAX_PLAYERSplayer++)
                  {
                    if(
IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
                  }
                for(new 
news[1]; <= news[17]; v++)
                {
                    if(!
unwanted[v]) SetVehicleToRespawn(v);
                    
Gas[v] = 100;
                }
                
SCM(playerid,COLOR_WHITE,"{FFFFCC}All faction cars respawn.");
                
GetPlayerName(playeridsendernamesizeof(sendername));
                
format(string256"{CAE1E2}Your faction's vehicles were respawned by %s."sendername);
                   
SendFamilyMessage(PlayerInfo[playerid][pMember],COLOR_GENANNOUNCE,string);
              }
              if(
PlayerInfo[playerid][pMember] == 10 && PlayerInfo[playerid][pRank] >=6)// Ballas
              
{
                new 
string[256], sendername[30];
                new 
bool:unwanted[CAR_AMOUNT];
                for(new 
player=0player<MAX_PLAYERSplayer++)
                  {
                        if(
IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
                  }
                for(new 
Ballasc[1]; <= Ballasc[13]; v++)
                {
                    if(!
unwanted[v]) SetVehicleToRespawn(v);
                    
SetVehicleVirtualWorld(Ballasc[v], 0);
                    
Gas[v] = 100;
                }
                
SCM(playerid,COLOR_WHITE,"{FFFFCC}All faction cars respawn.");
                
GetPlayerName(playeridsendernamesizeof(sendername));
                
format(string256"{CAE1E2}Your faction's vehicles were respawned by %s."sendername);
                   
SendFamilyMessage(PlayerInfo[playerid][pMember],COLOR_GENANNOUNCE,string);
              }
              if(
PlayerInfo[playerid][pMember] == 11 && PlayerInfo[playerid][pRank] >=6)// HITMAN
              
{
                new 
string[256], sendername[30];
                new 
bool:unwanted[CAR_AMOUNT];
                for(new 
player=0player<MAX_PLAYERSplayer++)
                  {
                    if(
IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
                  }
                for(new 
thea[1]; <= thea[16]; v++)
                {
                    if(!
unwanted[v]) SetVehicleToRespawn(v);
                    
Gas[v] = 100;
                }
                
SCM(playerid,COLOR_WHITE,"{FFFFCC}All faction cars respawn.");
                
GetPlayerName(playeridsendernamesizeof(sendername));
                
format(string256"{CAE1E2}Your faction's vehicles were respawned by %s."sendername);
                   
SendFamilyMessage(PlayerInfo[playerid][pMember],COLOR_GENANNOUNCE,string);
              }
              if(
PlayerInfo[playerid][pMember] == 12 && PlayerInfo[playerid][pRank] >=6)// SI
              
{
                new 
string[256], sendername[30];
                new 
bool:unwanted[CAR_AMOUNT];
                for(new 
player=0player<MAX_PLAYERSplayer++)
                  {
                    if(
IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
                  }
                for(new 
si[1]; <= si[12]; v++)
                {
                    if(!
unwanted[v]) SetVehicleToRespawn(v);
                    
Gas[v] = 100;
                }
                
SCM(playerid,COLOR_WHITE,"{FFFFCC}All faction cars respawn.");
                
GetPlayerName(playeridsendernamesizeof(sendername));
                
format(string256"{CAE1E2}Your faction's vehicles were respawned by %s."sendername);
                   
SendFamilyMessage(PlayerInfo[playerid][pMember],COLOR_GENANNOUNCE,string);
              }
              if(
PlayerInfo[playerid][pMember] == 15 && PlayerInfo[playerid][pRank] >=6)// riffa
              
{
                new 
string[256], sendername[30];
                new 
bool:unwanted[CAR_AMOUNT];
                for(new 
player=0player<MAX_PLAYERSplayer++)
                  {
                        if(
IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
                  }
                for(new 
Rifac[1]; <= Rifac[14]; v++)
                {
                    if(!
unwanted[v]) SetVehicleToRespawn(v);
                    
SetVehicleVirtualWorld(Rifac[v], 0);
                    
Gas[v] = 100;
                }
                
SCM(playerid,COLOR_WHITE,"{FFFFCC}All faction cars respawn.");
                
GetPlayerName(playeridsendernamesizeof(sendername));
                
format(string256"{CAE1E2}Your faction's vehicles were respawned by %s."sendername);
                   
SendFamilyMessage(PlayerInfo[playerid][pMember],COLOR_GENANNOUNCE,string);
              }
            if(
PlayerInfo[playerid][pMember] == 16 && PlayerInfo[playerid][pRank] >=6)// RUSSIAN
              
{
                new 
bool:unwanted[CAR_AMOUNT];
                for(new 
player=0player<MAX_PLAYERSplayer++)
                  {
                    if(
IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
                  }
                for(new 
Russc[1]; <= Russc[12]; v++)
                {
                    if(!
unwanted[v]) SetVehicleToRespawn(v);
                    
Gas[v] = 100;
                }
                
SCM(playerid,COLOR_WHITE,"{FFFFCC}All faction cars respawn.");
              }  
              if(
PlayerInfo[playerid][pMember] == 13 && PlayerInfo[playerid][pRank] >=6)//taxi
              
{
                new 
string[256], sendername[30];
                new 
bool:unwanted[CAR_AMOUNT];
                for(new 
player=0player<MAX_PLAYERSplayer++)
                  {
                    if(
IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
                  }
                for(new 
taxic[1]; <= taxic[11]; v++)
                {
                    if(!
unwanted[v]) SetVehicleToRespawn(v);
                    
Gas[v] = 100;
                }
                
SCM(playerid,COLOR_WHITE,"{FFFFCC}All faction cars respawn.");
                
GetPlayerName(playeridsendernamesizeof(sendername));
                
format(string256"{CAE1E2}Your faction's vehicles were respawned by %s."sendername);
                   
SendFamilyMessage(PlayerInfo[playerid][pMember],COLOR_GENANNOUNCE,string);
              }
              if(
PlayerInfo[playerid][pMember] == 17 && PlayerInfo[playerid][pRank] >=6)//taxi
              
{
                new 
string[256], sendername[30];
                new 
bool:unwanted[CAR_AMOUNT];
                for(new 
player=0player<MAX_PLAYERSplayer++)
                  {
                    if(
IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
                  }
                for(new 
talvc[1]; <= talvc[17]; v++)
                {
                    if(!
unwanted[v]) SetVehicleToRespawn(v);
                    
Gas[v] = 100;
                }
                
SCM(playerid,COLOR_WHITE,"{FFFFCC}All faction cars respawn.");
                
GetPlayerName(playeridsendernamesizeof(sendername));
                
format(string256"{CAE1E2}Your faction's vehicles were respawned by %s."sendername);
                   
SendFamilyMessage(PlayerInfo[playerid][pMember],COLOR_GENANNOUNCE,string);
              }
              if(
PlayerInfo[playerid][pMember] == 14 && PlayerInfo[playerid][pRank] >=6)//fp
              
{
                new 
string[256], sendername[30];
                new 
bool:unwanted[CAR_AMOUNT];
                for(new 
player=0player<MAX_PLAYERSplayer++)
                  {
                    if(
IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
                  }
                for(new 
ambcars[1]; <= ambcars[19]; v++)
                {
                    if(!
unwanted[v]) SetVehicleToRespawn(v);
                    
Gas[v] = 100;
                }
                
SCM(playerid,COLOR_WHITE,"{FFFFCC}All faction cars respawn.");
                
GetPlayerName(playeridsendernamesizeof(sendername));
                
format(string256"{CAE1E2}Your faction's vehicles were respawned by %s."sendername);
                   
SendFamilyMessage(PlayerInfo[playerid][pMember],COLOR_GENANNOUNCE,string);
              }
          }
          else
          {
            
SendClientMessage(playerid,COLOR_WHITE,"{FFB870}You are not a leader/subleader.");
            return 
1;
          }
    }
    return 
1;

__________________
GabiXx is offline   Reply With Quote
Old 06/02/2017, 03:30 PM   #2
edyun
Big Clucker
 
Join Date: Sep 2014
Posts: 66
Reputation: 3
Default Re: Problema /fvrespawn la Los Vagos

Ar trebui sa ne lasi si codul de la "unwanted"
edyun is offline   Reply With Quote
Old 06/02/2017, 05:51 PM   #3
GabiXx
Huge Clucker
 
GabiXx's Avatar
 
Join Date: Aug 2014
Location: Constanta, Romania
Posts: 221
Reputation: 0
Default Re: Problema /fvrespawn la Los Vagos

new bool:unwanted[CAR_AMOUNT];
__________________
GabiXx is offline   Reply With Quote
Old 07/02/2017, 09:27 AM   #4
GabiXx
Huge Clucker
 
GabiXx's Avatar
 
Join Date: Aug 2014
Location: Constanta, Romania
Posts: 221
Reputation: 0
Default Re: Problema /fvrespawn la Los Vagos

Cineva?
__________________
GabiXx is offline   Reply With Quote
Old 07/02/2017, 02:45 PM   #5
Morpheine
Big Clucker
 
Morpheine's Avatar
 
Join Date: Feb 2015
Location: Romania.
Posts: 121
Reputation: 4
Default Re: Problema /fvrespawn la Los Vagos

Arata-mi te rog, variabila Vagosc(variabila pt masini) cum este definita, si cum ai creat vehiculele.
Morpheine is offline   Reply With Quote
Old 07/02/2017, 06:39 PM   #6
GabiXx
Huge Clucker
 
GabiXx's Avatar
 
Join Date: Aug 2014
Location: Constanta, Romania
Posts: 221
Reputation: 0
Default Re: Problema /fvrespawn la Los Vagos

new Vagosc[12];

for(new i = 0; i < sizeof(Vagosc); i++)
{
format(nrinmatric, sizeof(nrinmatric), "{2F2F2F}BTR - 0%d", i);
SetVehicleNumberPlate(Vagosc[i], nrinmatric);
SetVehicleToRespawn(Vagosc[i]);
}

}
if(newcar == Vagosc[1] || newcar == Vagosc[2] || newcar == Vagosc[3] || newcar == Vagosc[4] || newcar == Vagosc[5] || newcar == Vagosc[6]
|| newcar == Vagosc[7] || newcar == Vagosc[8] || newcar == Vagosc[9] || newcar == Vagosc[10] || newcar == Vagosc[11])
{

Vagosc[1] = AddStaticVehicleEx(409,703.7014,-1422.5220,13.3817,359.3959,6,6,900);
Vagosc[2] = AddStaticVehicleEx(567,713.7603,-1421.7391,13.4230,0.6646,6,1,900);
Vagosc[3] = AddStaticVehicleEx(560,706.1600,-1438.5302,13.2439,358.7424,6,1,900);
Vagosc[4] = AddStaticVehicleEx(461,714.5914,-1439.3625,13.1255,47.8085,6,1,900);
Vagosc[5] = AddStaticVehicleEx(521,717.3517,-1439.1475,13.1093,47.1796,6,1,900);
Vagosc[6] = AddStaticVehicleEx(461,719.3464,-1438.8359,13.1025,51.1153,6,1,900);
Vagosc[7] = AddStaticVehicleEx(405,721.5812,-1431.6779,13.4349,90.2356,6,1,900);
Vagosc[8] = AddStaticVehicleEx(405,729.4288,-1431.7532,13.4291,90.1087,6,1,900);
Vagosc[9] = AddStaticVehicleEx(579,737.9662,-1431.2815,13.3892,91.2425,6,1,900);
Vagosc[10] = AddStaticVehicleEx(482,744.8428,-1442.9520,13.6817,359.4841,6,1,900);
Vagosc[11] = AddStaticVehicleEx(487,702.5461,-1453.3031,17.8268,4.5869,6,6,900);
__________________
GabiXx is offline   Reply With Quote
Old 08/02/2017, 07:52 AM   #7
Morpheine
Big Clucker
 
Morpheine's Avatar
 
Join Date: Feb 2015
Location: Romania.
Posts: 121
Reputation: 4
Default Re: Problema /fvrespawn la Los Vagos

Ce gamemode folosesti? Vad ca codul este bun, incearca-l sa-l rescrii de la 0 ma refer Variabila Vagos
Morpheine is offline   Reply With Quote
Old 08/02/2017, 07:11 PM   #8
GabiXx
Huge Clucker
 
GabiXx's Avatar
 
Join Date: Aug 2014
Location: Constanta, Romania
Posts: 221
Reputation: 0
Default Re: Problema /fvrespawn la Los Vagos

Problema rezolvata.
__________________

Last edited by GabiXx; 09/02/2017 at 11:06 AM.
GabiXx is offline   Reply With Quote
Old 08/02/2017, 07:24 PM   #9
GabiXx
Huge Clucker
 
GabiXx's Avatar
 
Join Date: Aug 2014
Location: Constanta, Romania
Posts: 221
Reputation: 0
Default Re: Problema /fvrespawn la Los Vagos

Ideea este ca am acelasi bug la toate factiunile de tip mafie, dar la restul comanda fuctioneaza perfect.
__________________
GabiXx is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vagos Interior +rep [SU]Spartan Scripting Help 0 06/07/2014 06:23 PM
[Off] BNP - HQ Los Vagos BNP Português/Portuguese 2 21/05/2014 03:29 AM
FVRespawn help! nastasescu Scripting Help 5 31/12/2013 09:29 AM
[Map] Vagos gang HQ Hotbrain Maps 0 16/05/2013 01:17 PM
[Map] Map Base Los Vagos [FFC]Twister Lançamentos/Releases 8 06/11/2011 01:18 AM


All times are GMT. The time now is 03:36 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.