Posts: 1,018
Threads: 320
Joined: Jul 2010
Hello I was make when some player contract the other player then that contract is go to hitman's and then leader of hitman types /portable and in dialog he go to see available targets and then he hire some hitman to kill that target and that's is the problem when hitman kill the target then it should be send text to other hitman's that hitman some name kill target some name and he is collect the prize of 2000$. Thanks
Posts: 791
Threads: 20
Joined: Sep 2013
Reputation:
0
@rittik stop copying and paste please.
and luca search for one.
Posts: 450
Threads: 10
Joined: May 2014
Reputation:
0
Copying and pasting ? who's code did I copied ?
Posts: 1,018
Threads: 320
Joined: Jul 2010
Quote:
Originally Posted by Eth
@rittik stop copying and paste please.
and luca search for one.
|
I was searching here but I didn't find only if I poste my code then I hope so someone will find the problem? Thanks
Posts: 1,018
Threads: 320
Joined: Jul 2010
that's not what I need I have my code everything working exepct when hitman kill the target but the problem is that's then nothing happening there's no message to hitman that is target dead and hitman doens't get money
Posts: 1,018
Threads: 320
Joined: Jul 2010
why this code won't work
pawn Код:
if(Target[killerid] == playerid) here target var is set to the hitman in givehit who's get to kill target
{
new nejm[2][MAX_PLAYER_NAME],string[128];
RPName(playerid,nejm[0]);
RPName(killerid,nejm[1]);
format(string,128,"Hitman %s is kill %s and collect %d$.",nejm[1],nejm[0],PlayerInfo[playerid][Contract]);
FamilyMessage(11,COLOR_ZUTA,string);
format(string,128,"|Hitman| %s is kill: %s",nejm[1],nejm[0]);
AdminMessage(BLUE,string);
MoneyPlus(killerid,PlayerInfo[playerid][Contract]);
PlayerInfo[playerid][Contract] = 0;
Target[killerid] = -1;
new query[128];
mysql_format(mysql,query,sizeof(query),"UPDATE `users` SET `Contract` = %d WHERE `ID` = '%s'",PlayerInfo[playerid][Contract],PlayerInfo[playerid][ID]);
mysql_tquery(mysql,query,"""");
}