need help for some cmds
#1

iwant some commands and it's announce for showing player to type it so we start:

/god :give player infinitie health

/goto id teleport to player

/clear clear all cars, maps... for rcon admin


please help me for that and give me the amx file because im very bad in pawno
Reply
#2

Search.
Reply
#3

Quote:
Originally Posted by darkhamza
iwant some commands and it's announce for showing player to type it so we start:

/god :give player infinitie health

/goto id teleport to player

/clear clear all cars, maps... for rcon admin


please help me for that and give me the amx file because im very bad in pawno
thats no funny
Reply
#4

the /god is easy

at the top:
Код:
forward godmode (playerid);

new godmode;
new GodActive[MAX_PLAYERS];
then at the bottom of your script:
Код:
public godmode (playerid)
{
   SetPlayerHealth(playerid,500.0);
   return 1;
}
then at onplayercommandtext:
Код:
if (strcmp("/GodMode", cmdtext, true, 10) == 0)
{
   if (GodActive[playerid] == 0)
   {
      GodModeActive[playerid] = 1;
      SendClientMessage(playerid,COLOR,"god on");
      SetTimer("godmode", 200,1);
   }
   else
   {
      if (GodActive[playerid] == 1)
      {
         GodActive[playerid] = 0;
         SendClientMessage(playerid, COLOR_YELLOW, "god off");
         KillTimer(godmode);
      }
    }
}
Reply
#5

Quote:
Originally Posted by JoshTheBoss
the /god is easy

at the top:
Код:
forward godmode (playerid);

new godmode;
new GodActive[MAX_PLAYERS];
then at the bottom of your script:
Код:
public godmode (playerid)
{
  SetPlayerHealth(playerid,500.0);
  return 1;
}
then at onplayercommandtext:
Код:
if (strcmp("/GodMode", cmdtext, true, 10) == 0)
{
  if (GodActive[playerid] == 0)
  {
     GodModeActive[playerid] = 1;
     SendClientMessage(playerid,COLOR,"god on");
     SetTimer("godmode", 200,1);
   }
   else
   {
     if (GodActive[playerid] == 1)
     {
        GodActive[playerid] = 0;
        SendClientMessage(playerid, COLOR_YELLOW, "god off");
        KillTimer(godmode);
      }
   }
}
Fail. This simply just gives you 500 hp. It doesnt keep spamming your hp up.
Reply
#6

crap on a stick, at least I tryed


try this link, it helps with the /god command

http://forum.sa-mp.com/index.php?topic=99846.0
Reply
#7

Quote:
Originally Posted by JoshTheBoss
crap on a stick, at least I tryed
Heh, no worries.
Reply
#8

guys im very bad in pawno itryed now but idk how to save it ...
Reply
#9

Set the HP 100000, then it is infinite
Reply
#10

how to set the HP im very bad in pawno if you know just do it for me give me an amx file then the problem will

finnish
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)