Raised This Month: $ Target: $400
 0% 

Delete models from map and save it ( code here )


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hu3br
Senior Member
Join Date: Apr 2015
Old 02-04-2016 , 07:34   Delete models from map and save it ( code here )
Reply With Quote #1

Hi, i'm trying to make one plugin that delete some model from map and save it, for the model not appear again ! My code in moment!
PHP Code:
#pragma semicolon 1
#include <sourcemod>
#include <sdktools>
#include <sdkhooks>

#define PLUGIN_VERSION "v1.1"

public Plugin:myinfo =
{
    
name "Deletar modelos do mapa",
    
author "hu3br",
    
description "Delet models from map and save",
    
version PLUGIN_VERSION,
};

public 
OnPluginStart()
{
    
RegAdminCmd("sm_test"testeADMFLAG_GENERIC);
    
HookEvent("round_start"Event_RoundStart);
}

public 
Action:teste(client,args)

    if(
client == 0)
    {
        
PrintToServer("%t","Command is in-game only");
        return;
    }
    
    
Modelos(client);
}  

public 
Action:Modelos(client
{
    new 
Handle:menu CreateMenu(Aimtargethandler);
    
SetMenuTitle(menu"Deletar modelo");

    
AddMenuItem(menu"option1""Deletar modelo no aim");
    
SetMenuExitButton(menutrue);
    
DisplayMenu(menuclientMENU_TIME_FOREVER);
    
    return 
Plugin_Handled
}

public 
Aimtargethandler(Handle:menuMenuAction:actionclientitemNum
{
    if ( 
action == MenuAction_Select 
    {
        new 
String:info[32];
        
        
GetMenuItem(menuitemNuminfosizeof(info));

        if ( 
strcmp(info,"option1") == 
        {
            
Modelos(client);
            
int target GetClientAimTarget(clientfalse);
            
AcceptEntityInput(target"Kill");
        }
        
    }
    
}

public 
Action Event_RoundStart(Handle event, const char[] namebool dontBroadcast)
{
 
// ... ???

Thanks

Last edited by hu3br; 02-04-2016 at 07:35.
hu3br is offline
hu3br
Senior Member
Join Date: Apr 2015
Old 02-04-2016 , 12:17   Re: Delete models from map and save it ( code here )
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?t=74680 like this
hu3br is offline
lingzhidiyu
Senior Member
Join Date: Mar 2014
Old 02-04-2016 , 20:09   Re: Delete models from map and save it ( code here )
Reply With Quote #3

most of the model in map is prop_static, you cant kill them.
lingzhidiyu is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 02-05-2016 , 02:36   Re: Delete models from map and save it ( code here )
Reply With Quote #4

couldn't you use stripper for this?
__________________
8guawong is offline
hu3br
Senior Member
Join Date: Apr 2015
Old 02-05-2016 , 07:40   Re: Delete models from map and save it ( code here )
Reply With Quote #5

Quote:
Originally Posted by lingzhidiyu View Post
most of the model in map is prop_static, you cant kill them.
Quote:
Originally Posted by 8guawong View Post
couldn't you use stripper for this?
then, i wnat to remove soccer balls in jailbreak servers, for put my custom ball plugin, but i have to remove only the ball model from maps. What i think, aim in model and delete it and save for no appear more!
hu3br is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 02-05-2016 , 07:53   Re: Delete models from map and save it ( code here )
Reply With Quote #6

Quote:
Originally Posted by hu3br View Post
then, i wnat to remove soccer balls in jailbreak servers, for put my custom ball plugin, but i have to remove only the ball model from maps. What i think, aim in model and delete it and save for no appear more!
definetly think you can do that with stripper
http://www.bailopan.net/stripper/
__________________

Last edited by 8guawong; 02-05-2016 at 07:54.
8guawong is offline
hu3br
Senior Member
Join Date: Apr 2015
Old 02-05-2016 , 08:40   Re: Delete models from map and save it ( code here )
Reply With Quote #7

Quote:
Originally Posted by 8guawong View Post
definetly think you can do that with stripper
http://www.bailopan.net/stripper/
I think that not, my way i think that is better and easy, just look at model for delete and puf ! I need help with script for make this =/
hu3br is offline
hu3br
Senior Member
Join Date: Apr 2015
Old 02-06-2016 , 10:45   Re: Delete models from map and save it ( code here )
Reply With Quote #8

For delete func_ too

Like the ball in this image ( its a func )

http://imgur.com/GOBMPlL

Last edited by hu3br; 02-06-2016 at 10:47.
hu3br is offline
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:15.


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