[Ajuda] [AJUDA] gotoof e gotoon bugado!
#7

entгo meu goto aqui ficaria assim??

pawn Код:
if(strcmp(cmd, "/goto", true) == 0)
{
if(MundoMATAMATA[playerid] == true) return SendClientMessage(playerid, CorCinza, "Comando nгo pode ser usado no mundo Mata Mata {FFFFFF}/Mundos{FFFFFF}!");
if(bloqueado [giveplayerid] == true) return 0; // Ao invйs do 0, vocк poderia colocar alguma mensagem
GetPlayerName(playerid, sendername, sizeof(sendername));
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, Branco, "{FF0000}Uso correto: /Goto id");
return 1;
}
new Float:plocx,Float:plocy,Float:plocz;
giveplayerid = strval(tmp);
if(IsPlayerConnected(giveplayerid))
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Vocк Foi atй o jogador {FFFFFF}%s{00F600}(%i).", giveplayer, giveplayerid);
SendClientMessage(playerid, Branco, string);
GetPlayerPos(giveplayerid, plocx, plocy, plocz);
new intid = GetPlayerInterior(giveplayerid);
SetPlayerInterior(playerid,intid);
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, plocx, plocy+4, plocz);
}
else
{
SetPlayerPos(playerid,plocx,plocy+2, plocz);
}
}
else
{
format(string, sizeof(string), "%d nгo й um player ativo!", giveplayerid);
SendClientMessage(playerid, Branco, string);
}
return 1;
}
Reply


Messages In This Thread
[AJUDA] gotoof e gotoon bugado! - by best95 - 23.04.2014, 02:28
Re: [AJUDA] gotoof e gotoon bugado! - by Fel486 - 23.04.2014, 02:33
Re: [AJUDA] gotoof e gotoon bugado! - by best95 - 23.04.2014, 02:45
Re: [AJUDA] gotoof e gotoon bugado! - by Fel486 - 23.04.2014, 02:47
Re: [AJUDA] gotoof e gotoon bugado! - by best95 - 23.04.2014, 02:50
Re: [AJUDA] gotoof e gotoon bugado! - by Fel486 - 23.04.2014, 02:55
Re: [AJUDA] gotoof e gotoon bugado! - by best95 - 23.04.2014, 02:59

Forum Jump:


Users browsing this thread: 3 Guest(s)