Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local b =0,plr;
- foreach(a,val in players)
- {
- plr = FindPlayer( players[a].tointeger() );
- if ( plr )
- {
- if ( PlayerJob( plr ) == 2 )
- {
- b++;
- ClientMessage( "[HITMAN]: Player : " + player.Name + " have contract: " + plr.Name + " kill him and earn money",plr,72, 209, 204 )
- status[ plr.ID ].Phone = 1
- }
- }
- }
- if(b==0) ClientMessage ( "No hitman online!", player,159,204,280);
- else ClientMessage ( "Your report is under progress.", player,159,204,280);
- }
- //======================= playerjob=========
- function PlayerJob( player )
- {
- local name = player.Name;
- local Answer = QuerySQL( db, "SELECT LastJob FROM Job WHERE Name='" + player.Name +"' COLLATE NOCASE" );
- local Job = GetSQLColumnData( Answer, 0 );
- return Job;
- FreeSQLQuery( Answer );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement