Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int playercount = Function.Call<int>(Hash.NETWORK_GET_NUM_CONNECTED_PLAYERS);
- Player player_d = Function.Call<Player>(Hash.PLAYER_ID);
- UI.ShowSubtitle(" Players connected" + player.ToString());
- for( int i = 0; i <playercount-1; i++)
- {
- Ped iPed = Function.Call<Ped>(Hash.GET_PLAYER_PED, i);
- string IName = Function.Call<string>(Hash.GET_PLAYER_NAME);
- bool isDev = Function.Call<bool>(Hash.NETWORK_PLAYER_IS_ROCKSTAR_DEV, Function.Call<Ped>(Hash.GET_PLAYER_PED, i));
- Vector3 icoords = Function.Call<Vector3>(Hash.GET_ENTITY_COORDS, iPed, false);
- UI.Notify("ID: " + i.ToString() + " Name:" + IName + " Coords:" + icoords.X.ToString() + "," + icoords.Y.ToString() + "," + icoords.Z.ToString()+ "isDEV: " + isDev,false);
- if(isDev != true && player_d != Function.Call<Player>(Hash.PLAYER_ID, i))
- {
- 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