02.02.2014, 00:52
pawn Код:
else if ((strcmp("PegarContrato", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("PegarContrato")))
{
if(PlayerInfo[playerid][pCargo] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й um Hitman/Triad");
return 0;
}
if(hitfound == 0)
{
SendClientMessage(playerid, COLOR_GREY, " Nгo ha contratos, USE contratos em seu laptop primeiro!");
return 0;
}
if(IsPlayerConnected(giveplayerid))
{
if(GoChase[playerid] < 999)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк jб tem um contrato!");
return 0;
}
if(IsPlayerConnected(hitid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giver, sizeof(giver));
GetPlayerName(hitid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "* Assasino %s pegou o contrato em %s [ID: %d], por R$%d.", sendername, giveplayer, hitid, PlayerInfo[hitid][pHeadValue]);
SendFamilyMessage(GetPlayerOrg(playerid), COLOR_YELLOW, string);
GoChase[playerid] = hitid;
GetChased[hitid] = playerid;
GotHit[hitid] = 1;
hitid = 0;
hitfound = 0;
return 0;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " O contrato saiu do servidor, Use contratos no seu laptop novamente!");
return 0;
}
}
}