How to change SERVER: Unknown command
#5

This is mine.
But it still "SERVER: Unknown command"


Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
    //Can't use commands when not spawned.
	if(IsSpawned[playerid] != 1)
	{
	   SCM(playerid,COLOR_WHITE,"{AFAFAF}[Error]: {FFFFFF}You cannot use commands while you're not spawned.");
	   return 1;
	}

	return SendClientMessage(playerid,COLOR_WHITE,"{FF0000}[ERROR]{FFFFFF} You have entered and invalid command, Type /commands or /cmds to see our server commands.");
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)