What is a problem?
Hello everyone
Firstly im sorry for my bad english :grrr: I ran into a problem. This plugin is not working. can someone solve it? This plugin: (In round start strip all weapons and gives awp and deagle all players) #include <sourcemod> #include <sdktools> #include <sdkhooks> #include <multicolors> #pragma tabsize 0 public OnPluginStart() { HookEvent("round_start", RoundStart); } public Action:RoundStart(Handle:event, const String:name[], bool:dontBroadcast) { ServerCommand("sm_strip @all 1 2 3 4 5 6"); ServerCommand("sm_give @all awp"); ServerCommand("sm_give @all deagle"); CPrintToChatAll("{darkred} AWP {orange}and {darkred} DEAGLE {orange}gived to all players); } What's the matter? |
Re: What is a problem?
You're missing a quotation mark.
Before: PHP Code:
PHP Code:
|
Re: What is a problem?
I've fixed it but it's still not working
(they did not make an error when they compiled) |
Re: What is a problem?
”Deagle” and ”Awp” aren’t valid entities.
Also you don’t want to youse servercommands when there are already functions. Use GivePlayerItem instead. |
Re: What is a problem?
ServerCommand("sm_strip @all 1 2 3 4 5 6");
GivePlayerItem("weapon_awp"); GivePlayerItem("weapon_deagle"); this a true? im new to sourcepawn coding, im sorry |
Re: What is a problem?
Quote:
PHP Code:
|
Re: What is a problem?
can someone do it and throw the source code? it still not working
|
All times are GMT -4. The time now is 15:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.