[HELP] Two commands
#4

Here is a /tele command.

with the explaination,

Hope it's clear.

Код:
CMD:tele(playerid, params[])
{
	if(isnull(params)) // IF you didn't type any parameter... then It'll show you the option.
	{ //then
		SendClientMessage(playerid, -1, "* Usage: /tele [input]"); //send this message
		SendClientMessage(playerid, -1, " *** LS,SF,LV"); // Locations you can TP to
		return 1;
	}

	if(strcmp(params,"ls",true) == 0) //if player types the parameter "ls"
	{ //then
		SetPlayerPos(playerid, 0, 0, 0); // sets the player's position to this coordinates.
	}
	else if (strcmp(params,"sf",true) == 0) //else if player types the params "sf"
	{ //then
		SetPlayerPos(playerid, 0, 0, 0); // sets the player's position to this coordinates.
	}
	else if (strcmp(params,"lv",true) == 0) //else if player types the params "lv"
	{ //then
		SetPlayerPos(playerid, 0, 0, 0);// sets the player's position to this coordinates.
	}
	return 1; // returns as true
}
Reply


Messages In This Thread
[HELP] Two commands - by Zekiloni - 01.01.2015, 14:14
Re: [HELP] Two commands - by Desi_Dude - 01.01.2015, 14:18
Re: [HELP] Two commands - by Diti1 - 01.01.2015, 14:20
Re: [HELP] Two commands - by Desi_Dude - 01.01.2015, 14:34
Re: [HELP] Two commands - by Zekiloni - 01.01.2015, 14:42
Re: [HELP] Two commands - by Desi_Dude - 01.01.2015, 15:16
Re: [HELP] Two commands - by Zekiloni - 01.01.2015, 15:20
Re: [HELP] Two commands - by Desi_Dude - 01.01.2015, 15:29
Re: [HELP] Two commands - by rickisme - 01.01.2015, 15:34
Re: [HELP] Two commands - by Wizzy951 - 01.01.2015, 15:56

Forum Jump:


Users browsing this thread: 1 Guest(s)