23.12.2013, 06:54
Nice tutorial.
About this:
I generally tend to do this:
About this:
pawn Code:
stock ProvedAtRandom()
{
new Random = random(3);
switch(Random)
{
case 0: SendRconCommand("gmx");
case 1: SendRconCommand("password Tutorial.");
case 2: SendRconCommand("reloadfs Tutorial");
}
return Random;
}
pawn Code:
stock ProvedAtRandom()
{
static const g_Commands[][] =
{
{"gmx"},
{"password Tutorial."},
{"reloadfs Tutorial"}
};
return SendRconCommand(g_Commands[random(sizeof(g_Commands))]);
}