new Job2[256];
public OnPlayerCommandText(playerid, cmdtext[])
if (strcmp("/job 2", cmdtext, true, 10) == 0)
{
if(IsPlayerInVehicle(playerid , 498))
{
Job2[playerid] = 1;
SetPlayerCheckpoint(playerid, 247.1548 , 17.8391 , 2.5254 , 2);
SendClientMessage(playerid , 0x489048FF , "---------------------------------------------------------");
SendClientMessage(playerid , 0x489048FF , "Pick up the load");
return 1;
}
}
return 0;
}
public OnPlayerEnterCheckpoint(playerid)
if(Job2[playerid] == 1)
{
if(IsPlayerInVehicle(playerid , 498))
{
Job2[playerid] = 2;
SetPlayerCheckpoint(playerid , 1423.0439 , 273.5977 , 19.5547 , 2 );
SendClientMessage(playerid , 0x489048FF , "------------------------------------------------------");
SendClientMessage(playerid , 0x489048FF , "Go to the Montgomery Hardware Store to deliever the tools");
return 1;
}
}
if(Job2[playerid] == 2)
{
if(IsPlayerInVehicle(playerid , 498))
{
Job2[playerid] = 3;
SetPlayerCheckpoint(playerid , -174.3220 , 1170.8254 , 19.7500 , 2);
SendClientMessage(playerid , 0x489048FF , "------------------------------------------------------");
SendClientMessage(playerid , 0x489048FF , "Now go to Fort Carson to deliever the chemicals to the Laundry");
return 1;
}
}
if(Job2[playerid] == 3)
{
if(IsPlayerInVehicle(playerid , 498))
{
Job2[playerid] = 4;
SetPlayerCheckpoint(playerid , 655.4785 , 1697.1421 ,6.9922 , 2);
SendClientMessage(playerid , 0x489048FF , "------------------------------------------------------");
SendClientMessage(playerid , 0x489048FF , "Now go to the gas station to deliever the tools");
return 1;
}
}
if(Job2[playerid] == 4)
{
if(IsPlayerInVehicle(playerid , 498))
{
Job2[playerid] = 5;
SetPlayerCheckpoint(playerid , 247.1548 , 17.8391 , 2.5254 , 2);
GivePlayerMoney(playerid , 1000);
SendClientMessage(playerid , 0x489048FF , "------------------------------------------------------");
SendClientMessage(playerid , 0x489048FF , "Now go to back to the trucking company to claim your payment");
return 1;
}
}
if(Job2[playerid] == 5)
{
if(IsPlayerInVehicle(playerid , 498))
{
GivePlayerMoney(playerid , 1000);
SendClientMessage(playerid , 0x489048FF , "------------------------------------------------------");
SendClientMessage(playerid , 0x489048FF , "You have completed your job and you recieved 1000$");
}
}
return 1;
}
new vehicleid = GetPlayerVehicleID(playerid);
if(GetVehicleModel(vehicleid) == 498)
{
if(GetVehicleModel(vehicleid) != 498)
{
SendClientMessage(playerid, COLOR_RED, "You must be in the correct vehicle in order to do this job.");
return 1;
}
pawn Код:
and maybe, pawn Код:
|