Job Car - 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: Job Car (
/showthread.php?tid=276564)
Job Car -
fie - 14.08.2011
Here is my code
Quote:
if(strcmp(cmd, "/startdelivery", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 493)
{
SendClientMessage(playerid, COLOR_GREEN, "Your Job Has Started. Go To The Red Marker To Pick Up The Products.");
}
else
{
SendClientMessage(playerid, COLOR_GREEN, "You are not in the correct vehicle");
}
}
return 1;
}
|
I want it so when your not in that vehicle is says you are not in the correct vehicle.
It compiles fine.
When you get into that vehicle and type /startdelivery it works and says that.
When you are not in the vehicle it says nothing :/
Is there a way to fix this?
Thanks
Re: Job Car -
fie - 14.08.2011
Anyone? I would really appreciate this
Re: Job Car -
McCarthy - 14.08.2011
Bumping after 9 minutes, seriosly?
Re: Job Car -
Darnell - 14.08.2011
pawn Код:
if(strcmp(cmd, "/startdelivery", true) == 0)
{
if(IsPlayerConnected(playerid)) {
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 493) {
SendClientMessage(playerid, COLOR_GREEN, "Your delivery has started. Go to the red marker and pick the products.");
}
else {
SendClientMessage(playerid, COLOR_GREEN, "You are not in the correct vehicle");
}
}
return 1;
}
Works fine for me.