• Welcome to Vice City Multiplayer.
 
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - 88nateatx

#1
ShowRoom (pawn) / Re: GUPS 1.16a
October 23, 2010, 03:31:18 PM
Quote from: Jancis71 on September 05, 2010, 08:31:23 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 :D hmmm... a zombeh server? maybe lol
#2
ShowRoom (pawn) / Re: GUPS 1.16a
September 05, 2010, 07:48:01 AM
I need help  :-\ could you help me make it so that you could !heal anywhere you wanna? please I'm a noob at pawn  :'(

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;