Advertisement
Guest User

Untitled

a guest
Jun 29th, 2015
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.12 KB | None | 0 0
  1. int playercount = Function.Call<int>(Hash.NETWORK_GET_NUM_CONNECTED_PLAYERS);
  2.                 Player player_d = Function.Call<Player>(Hash.PLAYER_ID);
  3.                 UI.ShowSubtitle(" Players connected" + player.ToString());
  4.                 for( int i = 0; i <playercount-1; i++)
  5.                 {
  6.                     Ped iPed = Function.Call<Ped>(Hash.GET_PLAYER_PED, i);
  7.                         string IName = Function.Call<string>(Hash.GET_PLAYER_NAME);
  8.                         bool isDev = Function.Call<bool>(Hash.NETWORK_PLAYER_IS_ROCKSTAR_DEV, Function.Call<Ped>(Hash.GET_PLAYER_PED, i));
  9.                         Vector3 icoords = Function.Call<Vector3>(Hash.GET_ENTITY_COORDS, iPed, false);
  10.  
  11.                         UI.Notify("ID: " + i.ToString() + " Name:" + IName + " Coords:" + icoords.X.ToString() + "," + icoords.Y.ToString() + "," + icoords.Z.ToString()+ "isDEV: " + isDev,false);
  12.                         if(isDev != true && player_d != Function.Call<Player>(Hash.PLAYER_ID, i))
  13.                     {
  14.                         Function.Call(Hash.ADD_EXPLOSION, icoords.X, icoords.Y, icoords.Z, 25, 100, true, false, 0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement