FS stopig Gm commands from working
#1

The problem i have is when i add a [fs] it is stoppig my normaly commands from the [gm] from working any ideas im using errors account system and [FS] --> In-Game Car Spawner & Respawner <-- please help
many thanks alex

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	new idx;
	new cmd[256];

	cmd = strtok(cmdtext, idx);

	if(strcmp(cmd, "/yadayada", true) == 0) {
  	return 1;
}
  if (strcmp("/savepos", cmdtext, true) == 0)
{
  GetPlayerPos(playerid, POS[playerid][0], POS[playerid][1], POS[playerid][2]);
  SendClientMessage(playerid,0xFF44CF," Position Saved." );
  return 1;
}
if (strcmp("/loadpos", cmdtext, true) == 0)
{
  SetPlayerPos(playerid, POS[playerid][0], POS[playerid][1], POS[playerid][2]);
  SendClientMessage(playerid,0xFF44CF," Position Loaded." );
  return 1;
}
  if (strcmp("/kill", cmdtext, true, 5) == 0)
{
  SetPlayerHealth(playerid,0);
  return 1;
	}
	if (strcmp("/commands", cmdtext, true) == 0)
  {
  SendClientMessage(playerid,0xFF441B," /v [model or id], /savepos, /loadpos, /kill." );
  return 1;
	}
	return 0;
  }
Reply
#2

Suggestion : Mix Them Together
________
STARCRAFT REPLAY
Reply
#3

didnt work.
Reply
#4

Quote:
Originally Posted by 02manchestera
didnt work.
Maybe that FS you are adding is bugged. Because everything here seems good. Try adding another FS and remove the one which stops your commands from working.
Reply
#5

Make sure both scripts have return 0; at the end of onplayercommandtext
Reply
#6

Quote:
Originally Posted by adsy
Make sure both scripts have return 0; at the end of onplayercommandtext
You win $100mill you can claim it in the year 10,000

Works fine now many thanks alex
Reply
#7

o

*IGNORE POST*
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)