Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerUpdate(playerid)
- {
- if(UlogovanProvera[playerid] == 1)
- {
- if( Snow[ playerid ] ) {
- if( GetPlayerInterior( playerid ) == 0 && GetPlayerVirtualWorld( playerid ) == 0 ) {
- new Float:Pos[ 3 ];
- GetPlayerCameraPos( playerid, Pos[ 0 ], Pos[ 1 ], Pos[ 2 ] );
- MovePlayerObject( playerid, SnowObject[ playerid ], Pos[ 0 ], Pos[ 1 ], Pos[ 2 ]-2.5, 4000.0 );
- }
- }
- }
- //ANTI CRASHER BY MANJANE!
- if (GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) { //anticresher
- new Float:vec[3];
- GetPlayerCameraFrontVector(playerid, vec[0], vec[1], vec[2]);
- new bool:possible_crasher = false; for (new i = 0; !possible_crasher && i < sizeof(vec); i++)
- if (floatabs(vec[i]) > 10.0) possible_crasher = true;
- if (possible_crasher) return 1; //do not send fake data, prevents crash }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment