[FilterScript] DeliverTruck Job, My First FilterScript
#4

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;
}
Reply


Messages In This Thread
DeliverTruck Job, My First FilterScript - by dimitri8 - 26.02.2014, 09:03
Re: DeliverTruck Job, My First FilterScript - by OnPlayerText - 26.02.2014, 12:53
Re: DeliverTruck Job, My First FilterScript - by dimitri8 - 26.02.2014, 18:26
Re: DeliverTruck Job, My First FilterScript - by MacT - 27.02.2014, 17:00

Forum Jump:


Users browsing this thread: 2 Guest(s)