Vice City Multiplayer
October 25, 2020, 11:59:13 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: VC:MP 0.3z r2 is released! http://vicecitymultiplayer.com
 
  Home Help Search Members Login Register  
  Show Posts
Pages: [1]
1  VC:MP / ShowRoom (pawn) / Re: GUPS 1.16a on: October 23, 2010, 03:31:18 pm
else if (strcmp(cmd, "!heal", true) == 0) {
      new Float:Health; GetPlayerHealth(playerid,Health);

        if (Health >= 100) SendClientMessage(playerid,COLOR_GREEN,"Error: You are healthy!");
      else {
         SetPlayerHealth(playerid,100.0);
            SendClientMessage(playerid,COLOR_GREEN,"You have been healed.");
      }
      return 1;

This Pawno example can teach ya so much about Pawn Scripting, and just makes ya wanna build the server yourself Cheesy hmmm... a zombeh server? maybe lol
2  VC:MP / ShowRoom (pawn) / Re: GUPS 1.16a on: September 05, 2010, 07:48:01 am
I need help  Undecided could you help me make it so that you could !heal anywhere you wanna? please I'm a noob at pawn  Cry

Code:
else if (strcmp(cmd, "!heal", true) == 0) {
new Float:Health; GetPlayerHealth(playerid,Health);
                                        if(strcmp(GetPlayerLocation(playerid), "Hospital-Vice-Point-Vice-City-Beach", true) == 1)                                         

SendClientMessage(playerid,COLOR_GREEN, "You have to be at the hospital.");
  else if (Health >= 100) SendClientMessage(playerid,COLOR_GREEN,"Error: You are healthy!");
else {
SetPlayerHealth(playerid,100.0);
    SendClientMessage(playerid,COLOR_GREEN,"You have been healed.");
}
return 1;

Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!