31.03.2013, 21:02
pawn Код:
CMD:returnveh(playerid, params[])
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
if(IsPlayerInRangeOfPoint(playerid, 15,1568.7477,-1689.9850,6.2188))
{
new carid = GetPlayerVehicleID(playerid);
if(lspdspawn[playerid] == 0) return SCM(playerid, COLOR_LIGHTRED, "You do not have a LSPD vehicle out.");
if(GetVehicleModel(carid) != 596 || GetVehicleModel(carid) != 597 || GetVehicleModel(carid) != 598 || GetVehicleModel(carid) != 523) return SCM(playerid, COLOR_LIGHTRED, "Your not in a LSPD vehicle.");
DestroyVehicle(carid);
SCM(playerid, COLOR_WHITE, "You have returned the LSPD Vehicle, to the police garage.");
lspdspawn[playerid] = 0;
}
}
return 1;
}