View Single Post
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 09-22-2011 , 15:00   Re: idea for plugin?
Reply With Quote #3

You want players to have their view sideways?!

PHP Code:
#include <sdktools>

public OnPluginStart()
{
    
HookEvent("player_spawn"Event_OnPlayerSpawn);
}

public 
Event_OnPlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast)
{
    new 
client GetClientOfUserId(GetEventInt(event"userid"));
    new 
Float:flAngles[3];
    
GetClientEyeAngles(clientflAngles);
    
flAngles[2] = 90.0;
    
TeleportEntity(clientNULL_VECTORflAnglesNULL_VECTOR);

That should do it - untested though. It rolls every player's view to the side. Why would you want that?
__________________
Peace-Maker is offline