Raised This Month: $32 Target: $400
 8% 

Simple Camera (3RD, TOP, LEFT) [Last update: 26/10/2016]


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-30-2011 , 18:03   Re: Simple Camera (3RD, TOP, LEFT)
Reply With Quote #11

It's quite redundant. Unless you add something new the others don't have, It will be unapproved.

From this link http://forums.alliedmods.net/showthr...ghlight=camera, You could add the OneEye method or better the connor's method (below) and therefore user could customize better the camera.
__________________
Arkshine is offline
enjoi.
Veteran Member
Join Date: Mar 2011
Old 09-30-2011 , 18:23   Re: Simple Camera (3RD, TOP, LEFT)
Reply With Quote #12

Found a spelling error.

Code:
client_print(id, print_chat, "%s You have to be alive to set a cam propertie to yourself", g_szPrefix)
Propertie?

Should be

PHP Code:
client_print(idprint_chat"%s You have to be alive to set a cam property to yourself"g_szPrefix
__________________
Block Maker v6.0 []
Point Slay v3.0 []
Contact [ PM ]
enjoi. is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 09-30-2011 , 18:35   Re: Simple Camera (3RD, TOP, LEFT)
Reply With Quote #13

Quote:
Originally Posted by Arkshine View Post
It's quite redundant. Unless you add something new the others don't have, It will be unapproved.
Told him about that.
__________________
I am out of order!
grimvh2 is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 10-01-2011 , 06:03   Re: Simple Camera (3RD, TOP, LEFT)
Reply With Quote #14

Quote:
Originally Posted by grimvh2 View Post
Sorry for speaking in dutch, but its the best way for me to explain.

PHP Code:
new const g_CameraItems[4][] = {
    
"Normal",
    
"3RD Camera",
    
"Top Down",
    
"Up Left"

Je hebt deze constante en die gebruik je voor je menu wat oke is,
maar je kan het ook gebruiken voor je hud.

Inplaats van 3 verschillende huds, maak je 1 globale hud met die constante erin, zoiets:

PHP Code:
set_dhudmessage(25500, -1.00.6526.03.00.13.0false)
show_hudmessage(0"%s %s has set his Camera to %s."g_szHudPrefixszNameg_CameraItems[item]) 
en je doet 4 keer get_user_name() terwijl je dat gwn vanboven in de functie er maar 1 keer hoeft te zetten.
in principe kan menu_handler in 1 klein blokje gedaan worden als je alles optimaliseert
Maar dan zit ik dan toch ook nog met die case's om die cams te verandere?
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 10-01-2011 , 07:26   Re: Simple Camera (3RD, TOP, LEFT)
Reply With Quote #15

try :

PHP Code:
new const g_CameraNum[4] = {
    
0,
    
1,
    
3,
    
2
}

public 
menu_handler(idmenuitem)
{
    if(
is_user_alive(id))
    {
        new 
szName[32]; get_user_name(idszNamecharsmax(szName)) 
        
        
set_dhudmessage(25500, -1.00.6526.03.00.13.0false)
        
show_hudmessage(0"%s %s has set his Camera to %s."g_szHudPrefixszNameg_CameraItems[item])
        
        
set_view(idg_CameraNum[item])
    }

__________________
I am out of order!
grimvh2 is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 10-01-2011 , 08:20   Re: Simple Camera (3RD, TOP, LEFT)
Reply With Quote #16

Quote:
Originally Posted by grimvh2 View Post
try :

PHP Code:
new const g_CameraNum[4] = {
    
0,
    
1,
    
3,
    
2
}

public 
menu_handler(idmenuitem)
{
    if(
is_user_alive(id))
    {
        new 
szName[32]; get_user_name(idszNamecharsmax(szName)) 
        
        
set_dhudmessage(25500, -1.00.6526.03.00.13.0false)
        
show_hudmessage(0"%s %s has set his Camera to %s."g_szHudPrefixszNameg_CameraItems[item])
        
        
set_view(idg_CameraNum[item])
    }

Bedankt
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-03-2011 , 16:23   Re: Simple Camera (3RD, TOP, LEFT)
Reply With Quote #17

Quote:
Originally Posted by Arkshine View Post
It's quite redundant. Unless you add something new the others don't have, It will be unapproved.

From this link http://forums.alliedmods.net/showthr...ghlight=camera, You could add others methods like the OneEye's method or better the connor's method (below) and therefore user could customize better the camera.
Consider this to be approved.
__________________
Arkshine is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 10-11-2016 , 15:56   Re: Simple Camera (3RD, TOP, LEFT)
Reply With Quote #18

Uploaded a new version of this plugin. Check first post for changelogs. v1.0 is still attached.

I'm considering adding ConnorMcLeod's method but i'm not sure which version i should use since there are many versions out there in that topic linked by Arkshine.

EDIT: Screenshots will be added later.

Any suggestions are also always welcome.
__________________

Last edited by Napoleon_be; 10-12-2016 at 11:25.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 10-18-2016 , 11:23   Re: Simple Camera (3RD, TOP, LEFT) [Last update: 11/10/2016]
Reply With Quote #19

UPDATE: added a MENU_EXIT check in v1.1, forgot that one.
__________________

Last edited by Napoleon_be; 10-18-2016 at 11:27.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 10-25-2016 , 16:42   Re: Simple Camera (3RD, TOP, LEFT) [Last update: 11/10/2016]
Reply With Quote #20

Updated to version v1.2. Changelog at front page and also here:

Notify me if there are any error logs or bugs.

Code:
v1.0:         - Release

v1.1:         - Code has been rewritten
              - ColorChat is now used to show a message instead of dhudmessage.
              - Added a cvar for customizable prefixes in front of chat messages.
              - Fixed an unknown error that throw "index out of bounds"   which i had no explanation for. This new version fixes that error

v1.2:         - Added ML Support
              - Added extra commands: /normal - /3rd - /upleft - /topdown

__________________

Last edited by Napoleon_be; 10-25-2016 at 16:42.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode