TAXI, PD, AND PARAMEDIC VEHICLE ADD - HOW TO ADD THIS? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: TAXI, PD, AND PARAMEDIC VEHICLE ADD - HOW TO ADD THIS? (
/showthread.php?tid=112337)
TAXI, PD, AND PARAMEDIC VEHICLE ADD - HOW TO ADD THIS? -
buonggiorno - 06.12.2009
I make vehicle into mta editor for pd, taxi, and medic team
i add it to server but when taxi driver enter in the car and type /fare [price] he get message YOU ARE NOT IN TAXI
The same is when medic try to heal someone, he get message YOU ARE NOT IN MEDIC CAR.
That to do? how to fix? dont give me search link becouse u search and didnt find nothing
help please
Re: TAXI, PD, AND PARAMEDIC VEHICLE ADD - HOW TO ADD THIS? -
Grim_ - 06.12.2009
Show us the command /fare.
Re: TAXI, PD, AND PARAMEDIC VEHICLE ADD - HOW TO ADD THIS? -
lolumadd - 06.12.2009
When he does the command: /fair, do you have this?
pawn Код:
If(GetPlayerVehicleModel(GetPlayerVehicleID) == TAXI_ID)
Re: TAXI, PD, AND PARAMEDIC VEHICLE ADD - HOW TO ADD THIS? -
buonggiorno - 06.12.2009
Код:
if(strcmp(cmd,"/fare",true)==0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 10||PlayerInfo[playerid][pLeader] == 10|| PlayerInfo[playerid][pJob] == 14)
{
if(TransportDuty[playerid] > 0)
{
if(TransportDuty[playerid] == 1)
{
TaxiDrivers -= 1;
}
else if(TransportDuty[playerid] == 2)
{
BusDrivers -= 1;
}
TransportDuty[playerid] = 0;
format(string, sizeof(string), "* You are now Off Duty and earned $%d.", TransportMoney[playerid]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
GivePlayerMoney(playerid, TransportMoney[playerid]);
ConsumingMoney[playerid] = 1; TransportValue[playerid] = 0; TransportMoney[playerid] = 0;
return 1;
}
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 82 || Veh == 84 || Veh == 85 || Veh == 94)
{
if(GetPlayerState(playerid) == 2)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /fare [price]");
return 1;
}
moneys = strval(tmp);
if(moneys < 1 || moneys > 999) { SendClientMessage(playerid, COLOR_GREY, " Fare price must be between $1 and $999 !"); return 1; }
TaxiDrivers += 1; TransportDuty[playerid] = 1; TransportValue[playerid] = moneys;
GetPlayerName(playerid,sendername,sizeof(sendername));
format(string, sizeof(string), "Taxi Driver %s is On Duty, fare: $%d.", sendername, TransportValue[playerid]);
OOCNews(TEAM_GROVE_COLOR,string);
}
here is cmd
Re: TAXI, PD, AND PARAMEDIC VEHICLE ADD - HOW TO ADD THIS? -
Grim_ - 06.12.2009
pawn Код:
new Veh = GetVehicleModel(GetPlayerVehicleID(playerid);