How to go to drive on water?
#5

Even found the function for you...
pawn Код:
native TogglePlayerDriveOnWater(playerid, bool:toggle);
For example, using this code if a player types the words "waterfun" then they can drive on water. If activated, this feature is deactivated.

pawn Код:
public OnPlayerText(playerid,text[])
{
     if(strcmp(text, "waterfun", true) == 0)
     {
           if(!IsPlayerSAMPP(playerid)) return SendClientMessage(playerid, -1, "You do not have the SA:MP plugin.");
           if(WaterFun[playerid] == true)
           {
                 TogglePlayerDriveOnWater(playerid, false);
                 WaterFun[playerid] = false;
                 GameTextForPlayer(playerid, "Cheat De-Activated", 2, 10000);
                 return 1;
          }
          else
          {
                 TogglePlayerDriveOnWater(playerid, true);
                 WaterFun[playerid] = true;
                 GameTextForPlayer(playerid, "Cheat Activated", 2, 10000);
                 return 1;
          }
     }
       return 1;
}
Reply


Messages In This Thread
How to go to drive on water? - by _Application_ - 02.12.2014, 22:17
Re: How to go to drive on water? - by Schneider - 02.12.2014, 22:37
Re: How to go to drive on water? - by Abagail - 02.12.2014, 22:40
Re: How to go to drive on water? - by Luis- - 02.12.2014, 22:43
Re: How to go to drive on water? - by Abagail - 02.12.2014, 22:50
Re: How to go to drive on water? - by gtakillerIV - 02.12.2014, 22:54
Re: How to go to drive on water? - by Abagail - 02.12.2014, 23:09
Re: How to go to drive on water? - by _Application_ - 03.12.2014, 10:44
Re: How to go to drive on water? - by Schneider - 03.12.2014, 14:42
Re: How to go to drive on water? - by Schneider - 03.12.2014, 15:03

Forum Jump:


Users browsing this thread: 1 Guest(s)