27.02.2014, 17:00
Hey!
I hope this help you out.
CMD:delivertruck(playerid, params[])
{
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_RED, "You are not connetect to use this command.");
if(TruckerJob[playerid] == 1) SendClientMessage(playerid, COLOR_GREY, "You already working");
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 403)
{
TruckJob[playerid] = 1;
new name[MAX_PLAYER_NAME], string[48];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "* %s is now Delivering the products.", name );
SendClientMessageToAll(COLOR_YELLOW, string);
SendClientMessage(playerid,COLOR_YELLOW,"* Deliver the products through the shop.");
SetPlayerCheckpoint(i, 0, 0, 0, 3); //Define ur positions
}
else
{
SendClientMessage(playerid, COLOR_RED,"You have to be in the Truck to start the job");
TruckJob[playerid] = 0;
}
return 1;
}
I hope this help you out.
CMD:delivertruck(playerid, params[])
{
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_RED, "You are not connetect to use this command.");
if(TruckerJob[playerid] == 1) SendClientMessage(playerid, COLOR_GREY, "You already working");
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 403)
{
TruckJob[playerid] = 1;
new name[MAX_PLAYER_NAME], string[48];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "* %s is now Delivering the products.", name );
SendClientMessageToAll(COLOR_YELLOW, string);
SendClientMessage(playerid,COLOR_YELLOW,"* Deliver the products through the shop.");
SetPlayerCheckpoint(i, 0, 0, 0, 3); //Define ur positions
}
else
{
SendClientMessage(playerid, COLOR_RED,"You have to be in the Truck to start the job");
TruckJob[playerid] = 0;
}
return 1;
}