27.06.2011, 00:35
GetVehicles connected
exibe quantos carros tem no servidor.
exibe quantos carros tem no servidor.
pawn Code:
stock GetVehiclesConnecteds()
{
new
strtr[213], lol;
for(new i; i < MAX_VEHICLES; ++i)
{
if(GetVehicleModel(i))
{
strtr[GetVehicleModel(i)-400]++;
lol++;
}
}
return lol;
}
USO:
pawn Code:
printf("Tem %d veiculos no servidor.",GetVehiclesConnecteds());