21.07.2016, 12:20
Here's the code on top of the 6669
And I don't know what you mean by " Does this occur anywhere else in the script? "
pawn Код:
if(!ispassenger)
{
SetPlayerArmedWeapon(playerid, 0);
/* else if(IsAPizzaCar(vehicleid))
{
if(PlayerInfo[playerid][pJob] != 21 && PlayerInfo[playerid][pJob2] != 21)
{
new Float:slx, Float:sly, Float:slz;
GetPlayerPos(playerid, slx, sly, slz);
SetPlayerPos(playerid, slx, sly, slz+1.3);
PlayerPlaySound(playerid, 1130, slx, sly, slz+1.3);
RemovePlayerFromVehicle(playerid);
NOPCheck(playerid);
SendClientMessageEx(playerid, COLOR_GRAD2, "You are not a Pizza Boy!");
}
}*/
else if(IsAnAmbulance(vehicleid))
{
if(PlayerInfo[playerid][pMember] == 4||PlayerInfo[playerid][pLeader] == 4)
{
if(LSFMDVehicles[13] == vehicleid && PlayerInfo[playerid][pRank] < 5)
{
RemovePlayerFromVehicle(playerid);
new Float:slx, Float:sly, Float:slz;
GetPlayerPos(playerid, slx, sly, slz);
SetPlayerPos(playerid, slx, sly, slz);
NOPCheck(playerid);
SendClientMessageEx(playerid, COLOR_GRAD2, "Only ranks 5+ can drive this vehicle.");
}
}
else
{
SendClientMessageEx(playerid,COLOR_GREY," You are not in the LSFMD!");
RemovePlayerFromVehicle(playerid);
new Float:slx, Float:sly, Float:slz;
GetPlayerPos(playerid, slx, sly, slz);
SetPlayerPos(playerid, slx, sly, slz);
NOPCheck(playerid);
}
}