[Ajuda] goto
#1

mesmo sem digitar /gotooff fica como se tivesse digitado !

if(strcmp(cmd, "/gotooff", true) == 0)
{
if(AFK[playerid] == true) return SendClientMessage(playerid, CINZA, "{3cff00}| ERRO | {FFFFFF}Você não pode usar Comandos porque esta Ausente.");
SendClientMessage(playerid, -1, "| INFO | Você desativou o teleporte ate sua localidade");
Ativado[playerid] = true;
return 1;
}
if(strcmp(cmd, "/goto", true) == 0)
{
if(AFK[playerid] == true) return SendClientMessage(playerid, CINZA, "{3cff00}| ERRO | {FFFFFF}Voc? n?o pode usar Comandos porque est? Ausente.");
new id;
new PlayerB, string[300];
tmp = strtok(cmdtext, idx);
if(Ativado[id] == true) return SendClientMessage(playerid, -1, "| ERRO |O player desativou os teleportes ate ele");
if(!strlen(tmp)) return SendClientMessage(playerid, VERMELHO, "{00FF00}| INFO |{FFFFFF} /goto ( ID )");
PlayerB = strval(tmp);
if(AFK[PlayerB] == true) return SendClientMessage(playerid, VERMELHO, "{3cff00}| INFO | {FFFFFF}Este jogador esta ausente.");
if(!IsPlayerConnected(PlayerB)) return SendClientMessage(playerid, VERMELHO, "{3cff00}| ERRO |{FFFFFF}Este jogador não esta online.");
GetPlayerPos(PlayerB, X, Y, Z);
SetPlayerPos(playerid, X, Y+1, Z);
if(GetPlayerState(playerid) == 2)
{
new carrro = GetPlayerVehicleID(playerid);
SetVehiclePos(carrro, X, Y+1, Z);
PutPlayerInVehicle(playerid, carrro, 0);
}
format(string, sizeof(string), "{3cff00}| INFO | {FFFFFF}Voc? foi at? o jogador \"{f00c0c}%s.\"", Nome(PlayerB));
SendClientMessage(playerid, VERDE, string);
format(string, sizeof(string), "{3cff00}| INFO | {FFFFFF}O jogador \"{f00c0c}%s\" {FFFFFF}Veio at? voc?.", Nome(playerid));
SendClientMessage(PlayerB, VERDE, string);
return 1;
}
Reply
#2

tipo eu do /goto id msm a pessoa sem digitar /gotooff aparece q ela digitou
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)