Advertisement
Seregamil

Anti GOC - Prototype

Jun 28th, 2013
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //#define FILTERSCRIPT
  4. //все PutPlayerInVehicle замените на putPlayerInVehicle
  5. #include <a_samp>
  6.  
  7. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger){
  8. SetPVarInt(playerid,"ac_car_id",vehicleid);
  9. return 1;
  10. }
  11.  
  12. public OnPlayerStateChange(playerid, newstate, oldstate){
  13. if(newstate == PLAYER_STATE_DRIVER){
  14. if(GetPlayerVehicleID(playerid) != GetPVarInt(playerid,"ac_car_id")) {
  15. SetPVarInt(playerid,"ac_car_id",-1);
  16. new Float:x,Float:y,Float:z;
  17. GetPlayerPos(playerid,x,y,z);
  18. SetPlayerPos(playerid,x,y,z+1);
  19. SendClientMessage(playerid,-1,"Не шали тут!");
  20. return 1;
  21. }
  22. SetPVarInt(playerid,"ac_car_id",-1);
  23. }
  24. return 1;
  25. }
  26.  
  27. putPlayerInVehicle(playerid,vehicle,seat){
  28. SetPVarInt(playerid,"ac_car_id",vehicle);
  29. PutPlayerInVehicle(playerid,vehicle,seat);
  30. }
  31.  
  32. public OnPlayerConnect(playerid){
  33. SetPVarInt(playerid,"ac_car_id",-1);
  34. return 1;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement