Ok here's the code:
Line 25548 and 25555:
Код:
CMD:fingerprint(playerid, params[]) {
new
iTarget,
szSex[7],
szMessage[128];
if(IsACop(playerid) || PlayerInfo[playerid][pFaction] == 5 && PlayerInfo[playerid][pDivision] == 5 || PlayerInfo[playerid][pFaction] == 5 && PlayerInfo[playerid][pDivision] == 2) {
if(sscanf(params, "u", iTarget))
return SendClientMessage(playerid, COLOR_GREY, "USAGE: /fingerprint [playerid/partofname]");
if(!IsPlayerConnected(iTarget))
return SendClientMessage(playerid, COLOR_GREY, "The specified player is not connected.");
if(GetDistanceBetweenPlayers(iTarget, playerid) > 5)
return SendClientMessage(playerid, COLOR_GREY, "You're too far away.");
if(PlayerInfo[iTarget][pCrimes] == 0)
return SendClientMessage(playerid, COLOR_GREY, "IAFIS has found no matches for the scanned fingerprint.");
SendClientMessage(playerid, COLOR_GREY, "-----------------------------------------");
if(PlayerInfo[iTarget][pSex] == 1)
szSex = "Male";
else
szSex = "Female";
format(szMessage, sizeof(szMessage), "Name: %s (age: %d, sex: %s)", GetPlayerNameEx(iTarget), PlayerInfo[iTarget][pAge], szSex);
SendClientMessage(playerid, COLOR_WHITE, szMessage);
if(PlayerInfo[iTarget][pHouse] != INVALID_HOUSE_ID) {
new
szZone[MAX_ZONE_NAME];
Get2DPosZone(HouseInfo[PlayerInfo[iTarget][pHouse]][hExteriorX], HouseInfo[PlayerInfo[iTarget][pHouse]][hExteriorY], szZone, MAX_ZONE_NAME);
format(szMessage, sizeof(szMessage), "House: %d %s", PlayerInfo[iTarget][pHouse], szZone);
SendClientMessage(playerid, COLOR_WHITE, szMessage);
} else if(PlayerInfo[iTarget][pHouse2] != INVALID_HOUSE_ID) {
new
szZone[MAX_ZONE_NAME];
Get2DPosZone(HouseInfo[PlayerInfo[iTarget][pHouse2]][hExteriorX], HouseInfo[PlayerInfo[iTarget][pHouse2]][hExteriorY], szZone, MAX_ZONE_NAME);
format(szMessage, sizeof(szMessage), "House (2): %d %s", PlayerInfo[iTarget][pHouse2], szZone);
SendClientMessage(playerid, COLOR_WHITE, szMessage);
}
format(szMessage, sizeof(szMessage), "Prior convictions: %d", PlayerInfo[iTarget][pCrimes]);
SendClientMessage(playerid, COLOR_WHITE, szMessage);
format(szMessage, sizeof(szMessage), "Prior arrests: %d", PlayerInfo[iTarget][pArrested]);
SendClientMessage(playerid, COLOR_WHITE, szMessage);
SendClientMessage(playerid, COLOR_GREY, "-----------------------------------------");
}
return 1;
}
Line 58784:
Код:
if(dialogid == TRACKCAR && response) {
new Float: carPos[3];
if(PlayerVehicleInfo[playerid][listitem][pvId] > INVALID_PLAYER_VEHICLE_ID)
{
GetVehiclePos(PlayerVehicleInfo[playerid][listitem][pvId], carPos[0], carPos[1], carPos[2]);
if(CheckPointCheck(playerid))
{
SendClientMessage(playerid, COLOR_WHITE, "Please ensure that your current checkpoint is destroyed first with /killcheckpoint (you either have material packages, or another existing checkpoint).");
}
else
{
SetPVarInt(playerid, "TrackCar", 1);
new zone[MAX_ZONE_NAME];
Get3DZone(carPos[0], carPos[1], carPos[2], zone, sizeof(zone));
format(string, sizeof(string), "Your vehicle is located in %s.", zone);
SendClientMessage(playerid, COLOR_YELLOW, string);
SetPlayerCheckpoint(playerid, carPos[0], carPos[1], carPos[2], 15.0);
SendClientMessage(playerid, COLOR_WHITE, "Hint: Make your way to the checkpoint to find your vehicle!");
}
}
else if(PlayerVehicleInfo[playerid][listitem][pvImpounded]) SendClientMessage(playerid, COLOR_WHITE, "You can't track an impounded vehicle. If you wish to reclaim it, do so at the DMV in Dillimore.");
else if(PlayerVehicleInfo[playerid][listitem][pvDisabled] == 1) SendClientMessage(playerid, COLOR_WHITE, "You can't track a disabled vehicle. It is disabled due to your Donator level (vehicle restrictions).");
else if(PlayerVehicleInfo[playerid][listitem][pvSpawned] == 0 && PlayerVehicleInfo[playerid][listitem][pvModelId] != 0) SendClientMessage(playerid, COLOR_WHITE, "You can't track a stored vehicle. Use /vstorage to spawn it.");
else SendClientMessage(playerid, COLOR_WHITE, "You can't track a non-existent vehicle.");
}
Line 58818:
Код:
else if(dialogid == GTRACKCAR)
{
if(response == 1)
{
for(new i = 0; i < MAX_GANG_VEHICLES; i++)
{
if(listitem == i)
{
new Float: carPos[3];
new Family = PlayerInfo[playerid][pGang];
if(FamilyVehicleInfo[Family][i][fvId] != INVALID_VEHICLE_ID)
{
GetVehiclePos(FamilyVehicleInfo[Family][i][fvId], carPos[0], carPos[1], carPos[2]);
if(CheckPointCheck(playerid))
{
SendClientMessage(playerid, COLOR_WHITE, "Please ensure that your current checkpoint is destroyed first with /killcheckpoint (you either have material packages, or another existing checkpoint).");
}
else
{
SetPVarInt(playerid, "TrackCar", 1);
new zone[MAX_ZONE_NAME];
Get3DZone(carPos[0], carPos[1], carPos[2], zone, sizeof(zone));
format(string, sizeof(string), "Your vehicle is located in %s.", zone);
SendClientMessage(playerid, COLOR_YELLOW, string);
SetPlayerCheckpoint(playerid, carPos[0], carPos[1], carPos[2], 15.0);
SendClientMessage(playerid, COLOR_WHITE, "Hint: Make your way to the checkpoint to find your car!");
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "You can't track a vehicle in a empty slot.");
}
}
}
}
}
Line 61815:
Код:
if(EMSCallTime[i] > 0)
{
if(EMSAccepted[i] < 999)
{
if(IsPlayerConnected(EMSAccepted[i]))
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(EMSAccepted[i], X, Y, Z);
new zone[MAX_ZONE_NAME];
Get3DZone(X, Y, Z, zone, sizeof(zone));
new string[128];
format(string, sizeof(string), "Your patient is located in %s.", zone);
SetPlayerCheckpoint(i, X, Y, Z, 5);
}
}
}