Whats the problem here?
#2

pawn Код:
#include a_samp

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/loadfs", true) ==0 )
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 1337)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[USAGE]: /loadfs [fs name]");
return 1;
}
new level;
level = strval(tmp);
format(string, sizeof(string), "/loadfs %s", level);
SendRconCommand(string);
return 1;
}
return 0;
}
Reply


Messages In This Thread
Whats the problem here? - by tomnidi - 08.07.2009, 13:31
Re: Whats the problem here? - by refshal - 08.07.2009, 13:39
Re: Whats the problem here? - by tomnidi - 08.07.2009, 14:09
Re: Whats the problem here? - by refshal - 08.07.2009, 14:15
Re: Whats the problem here? - by tomnidi - 08.07.2009, 14:21
Re: Whats the problem here? - by Correlli - 08.07.2009, 14:28
Re: Whats the problem here? - by tomnidi - 08.07.2009, 14:42
Re: Whats the problem here? - by Correlli - 08.07.2009, 14:44
Re: Whats the problem here? - by Nero_3D - 08.07.2009, 15:09
Re: Whats the problem here? - by tomnidi - 08.07.2009, 15:27

Forum Jump:


Users browsing this thread: 1 Guest(s)