Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <walking>
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(!strcmp(cmdtext, "/walk on", true))
- {
- TogglePlayerWalking(playerid, true);
- return 1;
- }
- if(!strcmp(cmdtext, "/walk off", true))
- {
- TogglePlayerWalking(playerid, false);
- return 1;
- }
- return 0;
- }
- public OnPlayerUpdate(playerid)
- {
- walking_OnPlayerUpdate(playerid);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- walking_OnPlayerDisconnect(playerid);
- return 1;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid)
- {
- walking_OnPlayerEnterVehicle(playerid);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement