- 0
Problema job
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
FloriynScr
Problema intalnita (descriere):Salut, problema mea este ca la job-ul pe care il am nu trebuie sa intri cu masina in cp, trebuie sa te dai jos din masina intri in cp si pui gunoiul in masina, dar cand intri cu masina in cp dispare checkpoint-ul. As vrea cand intru in cp cu masina sa scrie 'Trebuie sa te dai jos' sau ceva de genu.
Ero(area / rile) / warning-(ul / urile): -
Liniile de cod / sursa / script-ul: if(CP[playerid] == 1500)
{
if(vehicleVariables[GetPlayerVehicleID(playerid)][vVehicleJob] == 9)
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Once you reach the pickup, park beside it and grab the trash bag");
SetPlayerCheckpoint(playerid, 2857.6746,-1357.1639,11.0725, 2.5);
CP[playerid] = 1501;
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY,"You are not in a Trashmaster.");
}
}
if(CP[playerid] == 1501)
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Take the garabage bag to the Trashmaster back and throw it inside by pressing click or ctrl.");
SetPlayerAttachedObject( playerid, 0, 1265, 6, 0.242969, -0.075360, -0.023056, 346.064819, 260.035186, 21.954124, 0.633239, 1.000000, 0.999702 );
playerVariables[playerid][HoldingObject] = 1;
return 1;
}
if(CP[playerid] == 1503)
{
new playerstate = GetPlayerState(playerid);
if (playerstate == PLAYER_STATE_DRIVER)
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_ATTACK,"(+) You received $2.700. Collect Transh.");
playerVariables[playerid][pTrash] = 0;
playerVariables[playerid][pTRoute] = 0;
playerVariables[playerid][pMoney] += 2700;
SetVehicleToRespawnEx(GetPlayerVehicleID(playerid));
CP[playerid] = 0;
return 1;
}
else
{
SetPlayerCheckpoint(playerid, 2196.4490,-1977.1947,13.5527, 3.0);
}
}
if((newkeys & KEY_FIRE))
{
new name[MAX_PLAYER_NAME], string[256];
GetPlayerName(playerid, name, sizeof(name));
for(new i = 0; i < sizeof(Trashmaster); i++)
{
if(playerVariables[playerid][HoldingObject] == 1)
{
new Float:tmx, Float:tmy, Float:tmz;
GetVehiclePos(Trashmaster, tmx, tmy, tmz);
if(IsPlayerInRangeOfPoint(playerid, 5.0, tmx, tmy, tmz))
{
format(string, sizeof(string), " %s reaches into the dumpster and throws the trash bag", name);
nearByMessage(playerid, COLOR_PURPLE, string);
RemovePlayerAttachedObject(playerid, 0);
playerVariables[playerid][HoldingObject] = 0;
playerVariables[playerid][pTrash] ++;
switch(playerVariables[playerid][pTrash])
{
case 1:
{
SetPlayerCheckpoint(playerid, 2798.1355,-1080.6475,30.7198, 2.5);
SendClientMessage(playerid, COLOR_WHITE,"< Trash-Master Radio : Take the Trash-Master to the next Pickup >");
}
case 2:
{
SetPlayerCheckpoint(playerid, 2510.2324,-1031.1870,70.0021, 2.5);
SendClientMessage(playerid, COLOR_WHITE,"< Trash-Master Radio : Take the Trash-Master to the next Pickup >");
}
case 3:
{
SetPlayerCheckpoint(playerid, 1988.3920,-1087.9877,24.8313 , 2.5);
SendClientMessage(playerid, COLOR_WHITE,"< Trash-Master Radio : Take the Trash-Master to the next Pickup >");
}
case 4:
{
SetPlayerCheckpoint(playerid, 2113.9319,-1718.3832,13.5469, 2.5);
SendClientMessage(playerid, COLOR_WHITE,"< Trash-Master Radio : Take the Trash-Master to the next Pickup >");
}
case 5:
{
SetPlayerCheckpoint(playerid, 1936.8923,-1794.7124,13.5469, 2.5);
SendClientMessage(playerid, COLOR_WHITE,"< Trash-Master Radio : Take the Trash-Master to the next Pickup >");
}
case 6:
{
SetPlayerCheckpoint(playerid, 1325.6031,-1724.6348,13.5469, 2.5);
SendClientMessage(playerid, COLOR_WHITE,"< Trash-Master Radio : Take the Trash-Master to the next Pickup >");
}
case 7:
{
SetPlayerCheckpoint(playerid, 1362.3849,-1485.4042,13.5469, 2.5);
SendClientMessage(playerid, COLOR_WHITE,"< Trash-Master Radio : Take the Trash-Master to the next Pickup >");
}
case 8:
{
SetPlayerCheckpoint(playerid, 1204.3912,-1506.3314,13.5401, 2.5);
SendClientMessage(playerid, COLOR_WHITE,"< Trash-Master Radio : Take the Trash-Master to the next Pickup >");
}
case 9:
{
SetPlayerCheckpoint(playerid, 1392.5845,-1879.6696,13.5469, 2.5);
SendClientMessage(playerid, COLOR_WHITE,"< Trash-Master Radio : Take the Trash-Master to the next Pickup >");
}
case 10:
{
SetPlayerCheckpoint(playerid, 1828.5490,-1890.5249,13.4904, 2.5);
SendClientMessage(playerid, COLOR_WHITE,"< Trash-Master Radio : Take the Trash-Master to the next Pickup>");
}
case 11:
{
SetPlayerCheckpoint(playerid, 2196.4490,-1977.1947,13.5527, 2.5);
CP[playerid] = 1503;
SendClientMessage(playerid, COLOR_WHITE,"< Trash-Master Radio : Take the Trash-Master back to the Parking point to take your PayCheck");
}
}
}
}
}
}
Imagini / Video (optional):
Ati incercat sa rezolvati singur?: Da, dar degeaba.
5 answers to this question
Recommended Posts