need help command
#4

Quote:
Originally Posted by [SaRp
Ryder ]
here.. use this .. you will define the admin and other things yourself .. you need to put a little work not just ask .. but here take mine

Код:
if(strcmp(cmd,"/goto",true)==0)
		{
			tmp = strtok(cmdtext,idx);

			if(!strlen(tmp)) {
				SendClientMessage(playerid,0xFFFF00AA,"USAGE: /goto [playerid]");
			}

		if(Admin[playerid] >= 1)

		{
				chosenplayer = strval(tmp);

				GetPlayerPos(chosenplayer,xpos[0],ypos[0],zpos[0]);
				SetPlayerPos(playerid,xpos[0]+2,ypos[0]+2,zpos[0]);

				format(string,sizeof(string),"You have been teleported to %s.",originalplayername[chosenplayer]);
				SendClientMessage(playerid,COLOR_RED,string);
				format(string,sizeof(string),"%s has teleported to you.",originalplayername[playerid]);
				SendClientMessage(chosenplayer,COLOR_RED,string);
				format(string,sizeof(string),"/getin2 %d",chosenplayer);
				OnPlayerCommandText(playerid,string);
			}
		}
and you know /get ?
Reply


Messages In This Thread
need help command - by luckie12 - 10.05.2009, 14:55
Re: need help command - by [SaRp]Ryder - 10.05.2009, 15:04
Re: need help command - by MenaceX^ - 10.05.2009, 15:05
Re: need help command - by luckie12 - 10.05.2009, 15:05
Re: need help command - by luckie12 - 10.05.2009, 15:06
Re: need help command - by [SaRp]Ryder - 10.05.2009, 15:09
Re: need help command - by luckie12 - 10.05.2009, 15:10
Re: need help command - by [SaRp]Ryder - 10.05.2009, 15:10
Re: need help command - by luckie12 - 10.05.2009, 15:15
Re: need help command - by [SaRp]Ryder - 10.05.2009, 15:24

Forum Jump:


Users browsing this thread: 1 Guest(s)