20.07.2015, 03:09
Why ?
pawn Код:
if(IsWorking[playerid] == 1 && JobStage[playerid] == 2)
{
SetVehicleParamsForPlayer(WorkCar[playerid],playerid,0,0);
DisablePlayerCheckpointEx(playerid, 4);
JobStage[playerid] = 3;
new string[456];
format(string, sizeof(string), "Ai ridicat comanda~N~Urca obiectul in dubita.");
PlayerTextDrawSetString(playerid, JobHint[playerid], string);
ApplyAnimation(playerid, "CARRY", "liftup", 4.0, 0, 0, 0, 0, 0);
new value = random(5);
if(value == 0)
{
//
}
if(value == 1)
{
//
}
if(value == 2)
{
//
}
if(value == 3)
{
//
}
if(value == 4)
{
//
}
else
{
//
}
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_CARRY);
new Float:x, Float:y, Float:z;
GetPosBehindVehicle(WorkCar[playerid],x,y,z, 0.0)
SetPlayerCheckpointEx(playerid, 4, x,y,z, 2.0);
return 1;
}
pawn Код:
stock SetPlayerCheckpointEx(playerid, cpid, Float:x, Float:y, Float:z, Float:size)
{
pCPPosX[playerid][cpid] = x;
pCPPosY[playerid][cpid] = y;
pCPPosZ[playerid][cpid] = z;
pCPSize[playerid][cpid] = size;
pCPShow[playerid][cpid] = true;
pCPID[playerid] = cpid;
SetPlayerCheckpoint(playerid, x, y, z, size);
return 1;
}