Raised This Month: $7 Target: $400
 1% 

Help With Using ConVar "give" [Scripting]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
J0u0dra7
Junior Member
Join Date: Oct 2016
Old 10-11-2016 , 14:51   Help With Using ConVar "give" [Scripting]
Reply With Quote #1

Im a noob at scripting, but i was wondering if someone can answer these questions for me.
-If the give console command can be used in scripting.
-If the give console command can target a steam id.

This is the scripting im trying to make work.
public OnPluginStart()
{
ConVarGive = FindConVar("give");
}

public teamplay_flag_event(Handle:event, const String:name[], bool:dontBroadcast)
{
if(GetEventInt(event, "eventtype") == 5)
{
PrintToChatAll("Flag retuned.");
//Why do i get scripting errors for this, and how can it be set up properly if it can to be given to a steam id.

ConVarGive("item_teamflag");

return;
}
J0u0dra7 is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 10-11-2016 , 15:26   Re: Help With Using ConVar "give" [Scripting]
Reply With Quote #2

You should post this in sourcemod.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
J0u0dra7
Junior Member
Join Date: Oct 2016
Old 10-11-2016 , 17:28   Re: Help With Using ConVar "give" [Scripting]
Reply With Quote #3

ty
J0u0dra7 is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 10-11-2016 , 19:13   Re: Help With Using ConVar "give" [Scripting]
Reply With Quote #4

Code belongs in code blocks
__________________
Neuro Toxin is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 10-13-2016 , 03:55   Re: Help With Using ConVar "give" [Scripting]
Reply With Quote #5

give isn't a convar
__________________
retired
shavit is offline
Reply


Thread Tools
Display Modes

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 07:27.


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