28.05.2012, 20:20
pawn Код:
CMD:infocarro(playerid, params[]) {
if(!IsACop(playerid)) return SendClientMessage(playerid, -1, "ErrOr, Vocк nгo й um COP");
new Float:PTx, Float:PTy, Float:PTz, PTStr[30];
for(new i; i != MAX_VEHICLES; i++) {
GetVehiclePos(i, PTx, PTy, PTz);
if(PTx && PTy && PTz) {
if(IsPlayerInRangeOfPoint(playerid, 5, PTx, PTy, PTz) {
format(PTStr, sizeof(PTstr), "Veiculo: %d, Drogas: %d", i, PTDrogasVeh[i]);
SendClientMessage(playerid, -1, PTStr);
}
}
}
return 1;
}