[Ajuda] Anti God by DraKoN
#7

Quote:
Originally Posted by RiqueP
Посмотреть сообщение
sim, mas a variavel ta com o G minusculo.
Foi exemplo...... tentei criar ...... esta correto ?
pawn Код:
CMD:pgod1(playerid, params[])
{
new Msg[128], pgod;
if (sscanf(params, "i", pgod))return SendClientMessage(playerid, Amarelo, "Use: /Pgod [ID]");
else
{
if(gettime() - GetPVarInt(playerid, #comandoGd) < 4) {
SetPVarInt(playerid, #comandoGd, gettime());
return false;
}
SetPVarInt(playerid, #comandoGd, gettime());
new otherid = strval(params);
if(GetDistanceBetweenPlayers(playerid, otherid) > 20)
{
return SendClientMessage(playerid,Amarelo, "[Info]: Player too far ! (20mt)");
}
if( GetPlayerInterior(otherid) )
{
return SendClientMessage(playerid,Amarelo,"[Info]: This player is in an interior !");
}
if(!IsPlayerConnected(otherid)) return SendClientMessage(playerid, Amarelo, "[Info]: Player Offline !");
if(otherid == playerid) return SendClientMessage(playerid, Vermelho, "[Error]: You can not report yourself !");
}else
GetPlayerHealth(otherid, ComandoGod);
SetPlayerHealth(otherid, 80);
GetPlayerPos(otherid, GODX, GODY, GODZ);
SetPlayerPos(otherid, GODX, GODY, GODZ+20);
SetTimerEx("CheckGod", 2000, false, "ii", playerid, otherid);
SendClientMessage(playerid, Amarelo, "[Info]: Wait 2 Seconds......");
TogglePlayerControllable(playerid, 0);
}
return true;
}
Reply


Messages In This Thread
Anti God by DraKoN - by Patrick141 - 03.03.2015, 23:14
Re: Anti God by DraKoN - by PT - 03.03.2015, 23:19
Re: Anti God by DraKoN - by Patrick141 - 03.03.2015, 23:20
Re: Anti God by DraKoN - by PT - 03.03.2015, 23:34
Re: Anti God by DraKoN - by Patrick141 - 04.03.2015, 00:19
Re: Anti God by DraKoN - by RiqueP - 04.03.2015, 00:22
Re: Anti God by DraKoN - by Patrick141 - 04.03.2015, 00:30
Re: Anti God by DraKoN - by PT - 04.03.2015, 14:27
Re: Anti God by DraKoN - by StarPeens - 04.03.2015, 16:08
Re: Anti God by DraKoN - by Breno Da Silva Pereira - 04.03.2015, 18:06

Forum Jump:


Users browsing this thread: 1 Guest(s)