Guest User

Untitled

a guest
Jun 24th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.45 KB | None | 0 0
  1. function onPlayerCommand( plr, szCmd, text )
  2. {
  3.     if (szCmd == "players")
  4.     {
  5.       local pos = Vector( -1517.01, -912.944, 11.1141 );
  6.      
  7.       for (local player, id = 0, count = GetMaxPlayers(); id < count; id++) {
  8.         if (!(player = FindPlayer(id))) continue;
  9.        
  10.         pos.x += 20;
  11.         local veh = CreateVehicle( VEH_INFERNUS, pos, player.Angle);
  12.        
  13.         Message(player.Name + " " + player.ID);
  14.         player.Pos = pos;
  15.         player.Vehicle = veh;
  16.       }
  17.     }
  18.     return 1;
  19. }
Add Comment
Please, Sign In to add comment