Whats wrong?!?! (please help)
#4

Try
Код:
	new giveplayerid;
	if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, 0xFF0000FF, "USAGE:/go(playerid) to teleport to that player");
	new Float:x;
	new Float:y;
	new Float:z;
(825)	if(goto[playerid][giveplayerid] == true);
	{
		GetPlayerPos(giveplayerid, x,y,z);
		SetPlayerPos(playerid, x,y,z);
	}
	else if(goto[playerid][all] == false
	{
	    SendClientMessage(playerid, 0xFF0000FF, "That player disabled teleports to him!");
	}
	return 1;
}

CMD:gos(playerid, params[])
{
	new giveplayerid;
	if(sscanf(params, "i", giveplayerid)) return SendClientMessage(playerid, 0xFF0000FF, "USAGE:/gos to enable/disable players for teleporting to you!");
	if(goto[playerid][giveplayerid] == true
	{
	    SendClientMessage(playerid, 0xFF0000FF, "You have disabled player from teleporting to you!");
	    goto[playerid][giveplayerid] = false;
	}
	if(goto[playerid][giveplayerid] == false
	{
	    SendClientMessage(playerid, 0xFF0000FF, "You have enabled player from teleporting to you!");
	    goto[playerid][giveplayerid] = true;
	}
	return 1;
}
I am on mobile sorry.
Reply


Messages In This Thread
Whats wrong?!?! (please help) - by ironmen - 08.06.2015, 05:59
Re: Whats wrong?!?! (please help) - by Trucido - 08.06.2015, 06:08
Re: Whats wrong?!?! (please help) - by ironmen - 08.06.2015, 06:12
Re: Whats wrong?!?! (please help) - by Dangjai - 08.06.2015, 06:17
Re: Whats wrong?!?! (please help) - by ironmen - 08.06.2015, 06:18
Re: Whats wrong?!?! (please help) - by Dangjai - 08.06.2015, 06:20
Re: Whats wrong?!?! (please help) - by ironmen - 08.06.2015, 06:22
Re: Whats wrong?!?! (please help) - by Dangjai - 08.06.2015, 06:24
Re: Whats wrong?!?! (please help) - by Rabea - 08.06.2015, 06:25
Re: Whats wrong?!?! (please help) - by Dangjai - 08.06.2015, 06:29

Forum Jump:


Users browsing this thread: 3 Guest(s)