27.04.2009, 16:50
pawn Код:
if(strcmp(cmdtext,"/checkvehicles",true)==0)
{
new tmp,tmp2[213];
for(new i; i<MAX_VEHICLES;i++)
{
if(GetVehicleModel(i))
{
tmp++;
tmp2[GetVehicleModel(i)-400]++;
}
}
new tmp3;
for(new i; i<213;i++)if(tmp2[i])tmp3++;
format(tmp2,sizeof(tmp2),"%d vehicles -- %d vehicle types.",tmp,tmp3);
return SendClientMessage(playerid,0xFF0000FF,tmp2);
}