04.11.2009, 20:25
Can someone please tell me how to make gangcars thanks
forward IsAGangCar(carid); forward IsAGangCar2(carid); forward IsAGangCar3(carid); forward IsAGangCar4(carid); forward IsAGangCar5(carid);
new GangCar[MAX_PLAYERS];
public IsAGangCar(carid) { if(carid >= [ID] && carid <= [ID]) { return 1; } return 0; } public IsAGangCar2(carid) { if(carid >= [ID] && carid <= [ID]) { return 1; } return 0; } public IsAGangCar3(carid) { if(carid >= [ID] && carid <= [ID]) { return 1; } return 0; } public IsAGangCar4(carid) { if(carid >= [ID] && carid <= [ID]) { return 1; } return 0; } public IsAGangCar5(carid) { if(carid >= [ID] && carid <= [ID]) { return 1; } return 0; }
if(IsAGangCar(newcar)) { if(PlayerInfo[playerid][pLeader] == 5||PlayerInfo[playerid][pMember] == ?) { } else { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, COLOR_GREY,"You don't have keys of this vehicle.");} } if(IsAGangCar2(newcar)) { if(PlayerInfo[playerid][pLeader] == 6||PlayerInfo[playerid][pMember] == ?) { } else { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, COLOR_GREY,"You don't have keys of this vehicle.");} } if(IsAGangCar3(newcar)) { if(PlayerInfo[playerid][pLeader] == 14||PlayerInfo[playerid][pMember] == ?) { } else { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, COLOR_GREY,"You don't have keys of this vehicle.");} } if(IsAGangCar4(newcar)) { if(PlayerInfo[playerid][pLeader] == 15||PlayerInfo[playerid][pMember] == ?) { } else { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, COLOR_GREY,"You don't have keys of this vehicle.");} } if(IsAGangCar5(newcar)) { if(PlayerInfo[playerid][pLeader] == 16||PlayerInfo[playerid][pMember] == ?) { } else { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, COLOR_GREY,"You don't have keys of this vehicle.");} }
Originally Posted by Globe2009
Код:
forward IsAGangCar(carid); forward IsAGangCar2(carid); forward IsAGangCar3(carid); forward IsAGangCar4(carid); forward IsAGangCar5(carid); Код:
new GangCar[MAX_PLAYERS]; Код:
public IsAGangCar(carid) { if(carid >= [ID] && carid <= [ID]) { return 1; } return 0; } public IsAGangCar2(carid) { if(carid >= [ID] && carid <= [ID]) { return 1; } return 0; } public IsAGangCar3(carid) { if(carid >= [ID] && carid <= [ID]) { return 1; } return 0; } public IsAGangCar4(carid) { if(carid >= [ID] && carid <= [ID]) { return 1; } return 0; } public IsAGangCar5(carid) { if(carid >= [ID] && carid <= [ID]) { return 1; } return 0; } EDIT: oops sorry mate forgot this bit that says they cant drive it Код:
if(IsAGangCar(newcar)) { if(PlayerInfo[playerid][pLeader] == 5||PlayerInfo[playerid][pMember] == ?) { } else { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, COLOR_GREY,"You don't have keys of this vehicle.");} } if(IsAGangCar2(newcar)) { if(PlayerInfo[playerid][pLeader] == 6||PlayerInfo[playerid][pMember] == ?) { } else { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, COLOR_GREY,"You don't have keys of this vehicle.");} } if(IsAGangCar3(newcar)) { if(PlayerInfo[playerid][pLeader] == 14||PlayerInfo[playerid][pMember] == ?) { } else { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, COLOR_GREY,"You don't have keys of this vehicle.");} } if(IsAGangCar4(newcar)) { if(PlayerInfo[playerid][pLeader] == 15||PlayerInfo[playerid][pMember] == ?) { } else { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, COLOR_GREY,"You don't have keys of this vehicle.");} } if(IsAGangCar5(newcar)) { if(PlayerInfo[playerid][pLeader] == 16||PlayerInfo[playerid][pMember] == ?) { } else { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, COLOR_GREY,"You don't have keys of this vehicle.");} } |