SA-MP Forums Archive
Gethit Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Gethit Help (/showthread.php?tid=579513)



Gethit Help - keyvanik - 27.06.2015

Hi this is my hitman gethit cods

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;
        } 
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