isplayer..........
#1

Hello,
I want to get a isplayer(playerid) check so only me and a friend can use the command.
Is that possible in the following script, and if not, how can a add a simple isplayeradmin check?

this is the script:
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{

	if(strcmp(cmdtext, "/mainc", true) == 0)
	{

		MoveObject(gate1, -2326.4358, 453.8413, 75.5156, 1.00); //main close
		return 1;
 	}

	if(strcmp(cmdtext, "/maino", true) == 0)
	
	{

		MoveObject(gate1, -2326.3516, 453.9125, 69.5333, 1.00); //main open
	 	return 1;
	}
	if(strcmp(cmdtext, "/garagec", true) == 0)
	{

		MoveObject(gate2, -2312.6387, 473.1472, 72.7422, 1.00); //garage close
		MoveObject(gate4, -2324.5110, 472.9877, 72.7422, 1.00); //garage close
	
	}
	if(strcmp(cmdtext, "/garageo", true) == 0)
	{

		MoveObject(gate2, -2312.6445, 473.1638, 65.2422, 1.00); //garage open
		MoveObject(gate4, -2324.5110, 472.9877, 65.2422, 1.00); //garage open
	 	return 1;
	}


	if(strcmp(cmdtext, "/liftd", true) == 0)
	{

		MoveObject(gate3, -2327.4470, 452.4991, 28.6978, 2.00); //elevator down
		return 1;
	}
	if(strcmp(cmdtext, "/liftu", true) == 0)
	{

		MoveObject(gate3, -2327.4470, 452.4991, 69.9184, 2.00); //elevator up
		return 1;
 	}
Thanks already

Thuron
Reply
#2

I remember i made something like that.

I'll try to search


Edit:
[INC]EasyNames
Reply
#3

dank je
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)