Advertisement
Guest User

FilterScript

a guest
Jan 3rd, 2011
333
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.62 KB | None | 0 0
  1. #include <a_samp>
  2. #include <walking>
  3.  
  4. public OnPlayerCommandText(playerid, cmdtext[])
  5. {
  6.     if(!strcmp(cmdtext, "/walk on", true))
  7.     {
  8.         TogglePlayerWalking(playerid, true);
  9.         return 1;
  10.     }
  11.     if(!strcmp(cmdtext, "/walk off", true))
  12.     {
  13.         TogglePlayerWalking(playerid, false);
  14.         return 1;
  15.     }
  16.     return 0;
  17. }
  18.  
  19. public OnPlayerUpdate(playerid)
  20. {
  21.     walking_OnPlayerUpdate(playerid);
  22.     return 1;
  23. }
  24.  
  25. public OnPlayerDisconnect(playerid, reason)
  26. {
  27.     walking_OnPlayerDisconnect(playerid);
  28.     return 1;
  29. }
  30.  
  31. public OnPlayerEnterVehicle(playerid, vehicleid)
  32. {
  33.     walking_OnPlayerEnterVehicle(playerid);
  34.     return 1;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement