/* ORGANIZAЗФES NГO GOVERNAMENTAIS */[/pwn]
if(vehicleid == PCCCars[0] || vehicleid == PCCCars[1] || vehicleid == PCCCars[2] || vehicleid == PCCCars[3] || vehicleid == PCCCars[4] || vehicleid == PCCCars[5] || vehicleid == PCCCars[6] && pDados[playerid][Organizacao] != PCC) return SendClientMessage(playerid, -1, "Vocк nгo й do PCC !"), RemovePlayerFromVehicle(playerid);
/* ORGANIZAЗФES NГO GOVERNAMENTAIS */
if(vehicleid == PCCCars[0] || vehicleid == PCCCars[1] || vehicleid == PCCCars[2] || vehicleid == PCCCars[3] || vehicleid == PCCCars[4] || vehicleid == PCCCars[5] || vehicleid == PCCCars[6] && pDados[playerid][Organizacao] != PCC) return SendClientMessage(playerid, -1, "Vocк nгo й do PCC !"), RemovePlayerFromVehicle(playerid);
use strcat
https://sampwiki.blast.hk/wiki/Strcat |
stock IsCarForMe(vehicleid)
{
for(new i = 0; i <= 6; i++)
{
if(vehicleid == PCCCars[i]) return true;
}
return false;
}
if(IsCarForMe(vehicleid) && pDados[playerid][Organizacao] != PCC)
{
RemovePlayerFromVehicle(playerid);
return SendClientMessage(playerid, -1, "Vocк nгo й do PCC !");
}
}
try this:
pawn Код:
pawn Код:
|
if(vehicleid == GrooveCars[0] || vehicleid == GrooveCars[1] || vehicleid == GrooveCars[2] || vehicleid == GrooveCars[3] || vehicleid == GrooveCars[4] || vehicleid == GrooveCars[5] || vehicleid == GrooveCars[6] && pDados[playerid][Organizacao] != GROOVE) return SendClientMessage(playerid, -1, "Vocк nгo й da Groove Street !"), RemovePlayerFromVehicle(playerid); if(vehicleid == AztecaCars[0] || vehicleid == AztecaCars[1] || vehicleid == AztecaCars[2] || vehicleid == AztecaCars[3] || vehicleid == AztecaCars[4] || vehicleid == AztecaCars[5] || vehicleid == AztecaCars[6] && pDados[playerid][Organizacao] != AZTECAS) return SendClientMessage(playerid, -1, "Vocк nгo й dos Aztecas !"), RemovePlayerFromVehicle(playerid); if(vehicleid == VagosCars[0] || vehicleid == VagosCars[1] || vehicleid == VagosCars[2] || vehicleid == VagosCars[3] || vehicleid == VagosCars[4] || vehicleid == VagosCars[5] || vehicleid == VagosCars[6] && pDados[playerid][Organizacao] != VAGOS) return SendClientMessage(playerid, -1, "Vocк nгo й dos Vagos !"), RemovePlayerFromVehicle(playerid); if(vehicleid == BallaCars[0] || vehicleid == BallaCars[1] || vehicleid == BallaCars[2] || vehicleid == BallaCars[3] || vehicleid == BallaCars[4] || vehicleid == BallaCars[5] || vehicleid == BallaCars[6] && pDados[playerid][Organizacao] != BALLAS) return SendClientMessage(playerid, -1, "Vocк nгo й dos Ballas !"), RemovePlayerFromVehicle(playerid); if(vehicleid == PCCCars[0] || vehicleid == PCCCars[1] || vehicleid == PCCCars[2] || vehicleid == PCCCars[3] || vehicleid == PCCCars[4] || vehicleid == PCCCars[5] || vehicleid == PCCCars[6] && pDados[playerid][Organizacao] != PCC) return SendClientMessage(playerid, -1, "Vocк nгo й do PCC !"), RemovePlayerFromVehicle(playerid);
stock IsCarForMe(vehicleid)
{
for(new i = 0; i <= 6; i++)
{
if(vehicleid == PCCCars[i]) return false;//swap this
}
return true;//swap this
}
stock IsCarForMe(vehicleid,gang[],max_car = 6)
{
for(new i = 0; i <= max_car; i++)
{
if(vehicleid == gang[i]) return false;//swap this
}
return true;//swap this
}
IsCarForMe(vehicleid,PCCCars)
pawn Код:
|
if(vehicleid == GrooveCars[0] || vehicleid == GrooveCars[1] || vehicleid == GrooveCars[2] || vehicleid == GrooveCars[3] || vehicleid == GrooveCars[4] || vehicleid == GrooveCars[5] || vehicleid == GrooveCars[6] && pDados[playerid][Organizacao] != GROOVE) return SendClientMessage(playerid, -1, "Vocк nгo й da Groove Street !"), RemovePlayerFromVehicle(playerid); if(vehicleid == AztecaCars[0] || vehicleid == AztecaCars[1] || vehicleid == AztecaCars[2] || vehicleid == AztecaCars[3] || vehicleid == AztecaCars[4] || vehicleid == AztecaCars[5] || vehicleid == AztecaCars[6] && pDados[playerid][Organizacao] != AZTECAS) return SendClientMessage(playerid, -1, "Vocк nгo й dos Aztecas !"), RemovePlayerFromVehicle(playerid); if(vehicleid == VagosCars[0] || vehicleid == VagosCars[1] || vehicleid == VagosCars[2] || vehicleid == VagosCars[3] || vehicleid == VagosCars[4] || vehicleid == VagosCars[5] || vehicleid == VagosCars[6] && pDados[playerid][Organizacao] != VAGOS) return SendClientMessage(playerid, -1, "Vocк nгo й dos Vagos !"), RemovePlayerFromVehicle(playerid); if(vehicleid == BallaCars[0] || vehicleid == BallaCars[1] || vehicleid == BallaCars[2] || vehicleid == BallaCars[3] || vehicleid == BallaCars[4] || vehicleid == BallaCars[5] || vehicleid == BallaCars[6] && pDados[playerid][Organizacao] != BALLAS) return SendClientMessage(playerid, -1, "Vocк nгo й dos Ballas !"), RemovePlayerFromVehicle(playerid); if(vehicleid == PCCCars[0] || vehicleid == PCCCars[1] || vehicleid == PCCCars[2] || vehicleid == PCCCars[3] || vehicleid == PCCCars[4] || vehicleid == PCCCars[5] || vehicleid == PCCCars[6] && pDados[playerid][Organizacao] != PCC) return SendClientMessage(playerid, -1, "Vocк nгo й do PCC !"), RemovePlayerFromVehicle(playerid);
Im not sure about this code below :
pawn Код:
pawn Код:
|