new SAPDVehicles[20];
zcmd(fvr, playerid, params[])
{
if(!IsPlayerConnectedEx(playerid)) return SendClientMessageEx(playerid, COLOR_GREY, NoConectado);
{
{
if(Info[playerid][pLeader] > 0)
{
switch(Info[playerid][pLeader])
{
case 1:
{
{
new bool:unwanted[MAX_VEHICLES];
foreach(Player, player)
{
if(IsPlayerInAnyVehicle(player))
{
unwanted[GetPlayerVehicleID(player)]=true;
}
}
for(new car = SAPDVehicles[0]; car <= SAPDVehicles[52]; car++)
{
if(!unwanted[car]) SetVehicleToRespawn(car);
}
}
}
SendFamilyMessage(Info[playerid][pMember], 0xFE6C01FF, " All cars unused has been respawned by {FFFFFF}Leader");
}
else return SendClientMessageEx(playerid, COLOR_GREY, "You're not Leader!");
}
}
return 1;
}
for(new car = SAPDVehicles[0]; car <= SAPDVehicles[52]; car++)
for(new car = SAPDVehicles[0]; car <= SAPDVehicles[19]; car++)
car <= SAPDVehicles[52];
for (new car; car < sizeof SAPDVehicles; car++)
{
if (SAPDVehicles[car] != INVALID_VEHICLE_ID && !unwanted[SAPDVehicles[car]]) SetVehicleToRespawn(SAPDVehicles[car]);
}
new SAPDVehicles[20];
SAPDVehicles[0] = AddStaticVehicleEx(596,1601.872924,-1704.370971,5.612636,89.574440,0,1,TIME_RESPAWN);
..
SAPDVehicles[20] = AddStaticVehicleEx(596,1601.872924,-1704.370971,5.612636,89.574440,0,1,TIME_RESPAWN);
....
zcmd(fvr, playerid, params[])
{
if(!IsPlayerConnectedEx(playerid)) return SendClientMessageEx(playerid, COLOR_GREY, NoConectado);
{
{
if(Info[playerid][pLeader] > 0)
{
switch(Info[playerid][pLeader])
{
case 1:
{
{
new bool:unwanted[MAX_VEHICLES];
foreach(Player, player)
{
if(IsPlayerInAnyVehicle(player))
{
unwanted[GetPlayerVehicleID(player)]=true;
}
}
for(new v = SAPDVehicles[0]; v <= SAPDVehicles[20]; v++)
{
if(!unwanted[v]) SetVehicleToRespawn(v);
}
}
}
}
SendFamilyMessage(Info[playerid][pMember], 0xFE6C01FF, " All cars unused has been respawned by {FFFFFF}Leader");
}
else return SendClientMessageEx(playerid, COLOR_GREY, "You're not Leader!");
}
}
return 1;
}
SAPDVehicles[19] = AddStaticVehicleEx(596,1601.872924,-1704.370971,5.612636,89.574440,0,1,TIME_RESPAWN);
for(new v = SAPDVehicles[0]; v <= SAPDVehicles[20]; v++)
for(new v = SAPDVehicles[0]; v <= SAPDVehicles[19]; v++)
Try to change this
PHP код:
PHP код:
|