Include help please
#1

Hey guys. I want to work with includes because I have to make a lot of commands.
Now I want to have all my commands in an include

I'm emberrased to say that I've never done this before :P
I'm not a very decent scripter.
I want to give more time in scripting now so can someone tell me how to start working with includes?

Like how to get a commands like this in an include?:

pawn Код:
COMMAND:kick(playerid,params[])
{
new reason[50],id,string[286];
if(adminlevel[playerid] <1) return SendClientMessage(playerid,COLOR_RED,"You're not allowed to do this");
if(sscanf(params,"us[50]",id,reason)) return SendClientMessage(playerid, COLOR_GREY, "HINT: /kick [playerid] [reason]");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid,COLOR_RED,"Player not connected");
else
GetPlayerName(playerid, playername, sizeof(playername));
GetPlayerName(id, playername2, sizeof(playername2));
format(string,sizeof(string),"Admin %s has kicked %s Reason: %s",playername,playername2,reason);
SendClientMessageToAll(COLOR_RED,string);
Kick(id);
return 1;
}
Reply


Messages In This Thread
Include help please - by bartje01 - 24.01.2011, 06:33
Re: Include help please - by iggy1 - 24.01.2011, 06:57
Re: Include help please - by alpha500delta - 24.01.2011, 12:38
Re: Include help please - by bartje01 - 24.01.2011, 13:05

Forum Jump:


Users browsing this thread: 1 Guest(s)