Job Car
#1

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
Reply


Messages In This Thread
Job Car - by fie - 14.08.2011, 10:11
Re: Job Car - by fie - 14.08.2011, 10:20
Re: Job Car - by McCarthy - 14.08.2011, 10:27
Re: Job Car - by Darnell - 14.08.2011, 10:27

Forum Jump:


Users browsing this thread: 1 Guest(s)