KaLu17

[pawno.pl] -> #25879

May 3rd, 2014
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.39 KB | None | 0 0
  1. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  2. {
  3.     if(ispassenger == 0)
  4.     {
  5.         new Float:Pos[3];
  6.         GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
  7.         if((PlayerInfo[playerid][pFrakcja] != 1) && (vehicleid == radiolka[0] || vehicleid == radiolka[1] || vehicleid == radiolka[2]))
  8.         {
  9.             SetPlayerPos(playerid, Pos[0], Pos[1] + 0.01, Pos[2]);
  10.             return 1;
  11.         }
  12.     }
  13.  
  14.     return 1;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment