Raised This Month: $51 Target: $400
 12% 

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 , 17:32   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 online now Report Post
J0u0dra7 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 07:52.


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