/myvehicles show lot of cars
#1

When i doing /myvehicles i see few cars im not own, also if other player doing it see the same cars id's

Код:
	if(strcmp(cmdtext,"/myvehicles",true)==0)
	{
	   new ownh[MAX_STRING],asker[MAX_STRING];
	   new dupe[MAX_STRING];
	    SendClientMessage(playerid,COLOR_BRIGHTRED,"|___________________________[VEHICLES]___________________________|");
		for(new i=0;i<sizeof(Vehicles);i++)
		{
		new path[32];
		    format(path,sizeof(path),"cars/Car%d.txt",Vehicles[i][cID]);
			ownh = dini_Get(path,"owner");
			dupe = dini_Get(path,"dupekey");
        	format(asker, MAX_STRING, "%s", PlayerName(playerid));
		    if(Vehicles[i][cartype] == 69)
		    {
		        if(Vehicles[i][cOwned] == 1 && strcmp(asker,ownh,false)==0 || Vehicles[i][cOwned] == 1 && strcmp(asker,dupe,false)==0 )
		        {
					if(strcmp(dini_Get(path,"owner"),PlayerName(playerid),false) == 0 || strcmp(dini_Get(path,"dupekey"),PlayerName(playerid),false) == 0 )
					{
					    new text[60];
						new atext[60];
						new btext[60];
//						new ctext[70];
      					if(Vehicles[i][cLocked] == 1) { text = "Yes"; }
						if(Vehicles[i][cLocked] == 0) { text = "No"; }
						if(Vehicles[i][cAlarm] == 1) { atext = "Yes"; }
					if(Vehicles[i][cAlarm] == 0) { atext = "No"; }
						if(Vehicles[i][impounded] == 1) { btext = "Yes";}
						if(Vehicles[i][impounded] == 0) { btext = "No";}
						format(string, sizeof(string), "CarID[%d] - Model [%d] - Color1[%d] - Color2[%d] - Security[%s] - Security Status[%s] ",Vehicles[i][cID],Vehicles[i][carmodel],Vehicles[i][cColor1],Vehicles[i][cColor2],atext,text,btext);
						SendClientMessage(playerid,COLOR_GREY,string);
					}
				}
			}
			else continue;
		}
		return 1;
	}
Reply


Messages In This Thread
/myvehicles show lot of cars - by BlueGames - 10.09.2012, 17:17
Re: /myvehicles show lot of cars - by BlueGames - 11.09.2012, 05:49
Re: /myvehicles show lot of cars - by BlueGames - 11.09.2012, 08:16
Re: /myvehicles show lot of cars - by mamorunl - 11.09.2012, 08:22
Re: /myvehicles show lot of cars - by BlueGames - 11.09.2012, 09:27
Re: /myvehicles show lot of cars - by mamorunl - 11.09.2012, 10:30
Re: /myvehicles show lot of cars - by BlueGames - 11.09.2012, 11:18
Re: /myvehicles show lot of cars - by mamorunl - 11.09.2012, 11:26
Re: /myvehicles show lot of cars - by justinnater - 11.09.2012, 13:00
Re: /myvehicles show lot of cars - by BlueGames - 12.09.2012, 05:35

Forum Jump:


Users browsing this thread: 1 Guest(s)