27.06.2015, 14:55
Hi my Leavehit for hitman has a bug when hitman use it then use mycontract show hit contract but should say you are not on hit or ...
that mean Leavehit not work
this is cods of it
that mean Leavehit not work
this is cods of it
PHP код:
else if(!strcmp(cmd,"Leavehit",true))
{
if(AgentContractID[playerid] == INVALID_PLAYER_ID) {SCM(playerid,COLOR_ALI,"You are not on duty(gethit)."); return 0;}
if(AgentHitID[playerid] == INVALID_PLAYER_ID)
{
AgentContractIDUsed[AgentContractID[playerid]] = false;
AgentContractID[playerid] = INVALID_PLAYER_ID;
AgentHitID[playerid] = INVALID_PLAYER_ID;
}
else
{
AgentContractIDUsed[AgentContractID[playerid]] = false;
AgentContractID[playerid] = INVALID_PLAYER_ID;
ContractsCount ++;
ContractID[AgentHitID[playerid]] = ReturnContractID();
ContractIDUsed[ReturnContractID()] = true;
AgentHiterID[AgentHitID[playerid]] = INVALID_PLAYER_ID;
AgentHitID[playerid] = INVALID_PLAYER_ID;
}
SCM(playerid,COLOR_ALI,"You have leaved from hit duty successfully.");
return 0;
}