23.04.2014, 02:55
Й porque a variavel "ALVO" que dei foi sу um exemplo. Todo comando tem seus parametros e variaveis.
Olhe um exemplo bбsico do GOTO que fiz com a variбvel "ALVO".
Olhe um exemplo bбsico do GOTO que fiz com a variбvel "ALVO".
pawn Код:
CMD:goto(playerid, params[])
{
// Criei esse comando com a variavel "ALVO", ou seja, vou para o jogador de ID "ALVO"
new ALVO, Float:x, Float:y, Float:z;
if(IsPlayerConnected(ALVO)) // Se o "ALVO" estiver conectado...
{
GetPlayerPos(ALVO, x, y, z);
if(bloqueado [ALVO] == true) return 0; // Se o "ALVO" tiver bloqueado o GOTO, nada acontece.
else SetPlayerPos(playerid, x, y, z); // Caso contrбrio, irei atй o "ALVO"
}
return 1;
}