Help with Simple Cmd
#3

use this
Код:
// ANN
COMMAND:ann(playerid, params[])
{
	// Send the command to all admins so they can see it
	SendAdminText(playerid, "/ann", params);

	// Check if the player has logged in
	if (APlayerData[playerid][LoggedIn] == true)
	{
		// Check if the player's admin-level is at least 1
		if (APlayerData[playerid][PlayerLevel] >= 1)
		{
                        GameTextForAll(params,4000,3);
		}
		else	
                    return 0;	    
	}
	else
	    return 0;

	// Let the server know that this was a valid command
	return 1;
}
PHP код:
this cmd is not made by me,someone gave me i also used it n it works 
Reply


Messages In This Thread
Help with Simple Cmd - by Geeboi_Mehdi - 03.09.2012, 17:14
Re: Help with Simple Cmd - by MarkoN - 03.09.2012, 17:32
Re: Help with Simple Cmd - by shaniyal - 03.09.2012, 17:58

Forum Jump:


Users browsing this thread: 1 Guest(s)