commands problem
#1

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


Messages In This Thread
commands problem - by sscarface - 25.04.2012, 07:15
Re: commands problem - by MP2 - 25.04.2012, 07:22
Re: commands problem - by sscarface - 25.04.2012, 07:24

Forum Jump:


Users browsing this thread: 1 Guest(s)