Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <sdktools>
- float g_fAngles[MAXPLAYERS+1];
- public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3], float angles[3], int &weapon, int &subtype, int &cmdnum, int &tickcount, int &seed, int mouse[2])
- {
- if(IsPlayerAlive(client) && !IsFakeClient(client) && (buttons & IN_LEFT) > 0 || (buttons & IN_RIGHT) > 0 )
- {
- angles[1] = g_fAngles[client];
- TeleportEntity(client, NULL_VECTOR, angles, NULL_VECTOR);
- return Plugin_Changed;
- }
- g_fAngles[client] = angles[1];
- return Plugin_Continue;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement