25.04.2012, 07:15
i find /cancelhit command so i want player can /cancelhit on 60 sec and after player can't cancelhit can u fix my command
Код:
if(strcmp(cmd, "/cancelhit", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == { if(GoChase[playerid] < 999) { GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(hitid, giveplayer, sizeof(giveplayer)); format(string,sizeof string,"Hitman %s has canceled %s(ID:%d) contract.", sendername , giveplayer, hitid); SendFamilyMessage(8, COLOR_YELLOW, string); GetChased[playerid] = 999; GoChase[playerid] = 999; GotHit[playerid] = 0; hitid = 999; hitfound = 1; } } else { SendClientMessage(playerid, COLOR_GRAD1, " You are not a Hitman!"); } } return 1; }