27.06.2015, 19:23
Hi this is my hitman gethit cods
i need a cod for gethit for if a player contract me and if i'm afk and if hitman use /gethit not show me on gethit and go next contract who not afk and then im go out from afk when hitman use /gethit show me and kill me
PHP код:
else if(!strcmp(cmd,"Gethit",true))
{
if(AgentHitID[playerid] != INVALID_PLAYER_ID) {SCM(playerid,COLOR_ALI,"You already on gethiting, please wait ..."); return 0; }
if(PINFO[playerid][pGetHitTime] > 0) {format(string,sizeof string,"You must wait for %i minutes.",PINFO[playerid][pGetHitTime]); SCM(playerid,COLOR_HITMAN,string); return 0;}
if(AgentContractID[playerid] != INVALID_PLAYER_ID) {SCM(playerid,COL_SYN,"You already on duty."); return 0;}
AgentHitID[playerid] = INVALID_PLAYER_ID;
AgentContractID[playerid] = ReturnAgentID();
AgentContractIDUsed[ReturnAgentID()] = true;
SCM(playerid,COLOR_HITMAN,"You go on duty with your Hitman job.");
return 0;
}