Advertisement
KingOfVC

mardarchode kiki

Oct 27th, 2014
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. local b =0,plr;
  2. foreach(a,val in players)
  3. {
  4. plr = FindPlayer( players[a].tointeger() );
  5. if ( plr )
  6. {
  7. if ( PlayerJob( plr ) == 2 )
  8. {
  9. b++;
  10. ClientMessage( "[HITMAN]: Player : " + player.Name + " have contract: " + plr.Name + " kill him and earn money",plr,72, 209, 204 )
  11. status[ plr.ID ].Phone = 1
  12. }
  13. }
  14. }
  15. if(b==0) ClientMessage ( "No hitman online!", player,159,204,280);
  16. else ClientMessage ( "Your report is under progress.", player,159,204,280);
  17. }
  18.  
  19.  
  20.  
  21.  
  22. //======================= playerjob=========
  23. function PlayerJob( player )
  24. {
  25. local name = player.Name;
  26. local Answer = QuerySQL( db, "SELECT LastJob FROM Job WHERE Name='" + player.Name +"' COLLATE NOCASE" );
  27. local Job = GetSQLColumnData( Answer, 0 );
  28. return Job;
  29. FreeSQLQuery( Answer );
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement