All pastes #742132 Raw Edit

Someone

public text v1 · immutable
·published 2007-10-19 07:48 UTC
rendered paste body
	if(strcmp(cmd, "/chkmodels", true) == 0)//Credits to Mao9 - Sa-mp forums
	{
	    new vehicles,models[212],model,check;
	    for(new i=0;i<MAX_VEHICLES;i++){
	    	model=GetVehicleModel(i);
	    	for(new j=0;j<sizeof(models);j++){
				if(models[j]==model){check=1;}
 			}
 			if(check==0){
 				models[vehicles]=model;
 				vehicles++;
 			}
 			else{
 				check=0;
 			}
	    }
	    if(vehicles==0){SendClientMessage(playerid,COLOR_YELLOW,"You fudged the bucket");return 1;}
	    format(string,sizeof(string),"There are %d different vehicle models in this gamemode",vehicles);
	    SendClientMessage(playerid,COLOR_YELLOW,string);
	    return 1;
	}


	if(strcmp(cmd,"/chkvecs",true)==0)//Credits to Mao9 - Sa-mp forums
	{
	    new vecs;
	    for(new i=0;i<MAX_VEHICLES;i++)
	    {
			if(GetVehicleModel(i)>399&&GetVehicleModel(i)<612){vecs++;}
	    }
	    format(string,sizeof(string),"there are %d vehicles in this gamemode",vecs);
	    SendClientMessage(playerid,COLOR_GREEN,string);
	    return 1;
	}