[Question] How to make an Admin command
#1

Hey its me again for like the 3rd time in one day.. lol
anyway i was wondering how do u make an a command that only admins can use?
for example a teleport:

Код:
if (strcmp("/ls", cmdtext, true, 10) == 0)
	{
    SetPlayerPos(playerid, 1544.4379,-1353.2231,329.4744);
    SendClientMessage(playerid, COLOR_YELLOW, "Welcome to Los Santos!");
    new name[MAX_PLAYER_NAME], string[100];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "[TELEPORT] %s has gone to Los Santos [/ls]", name );
    SendClientMessageToAll(COLOR_LIGHTBLUE, string);
	return 1;
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)