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
#2

Anyone? I would really appreciate this
Reply
#3

Bumping after 9 minutes, seriosly?
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)