#1

Hey guys



Can some one help me to make Medcal Worker.
Example when a player die his budy stay in that place where he died and to send a message to medical worker team
example...[Nameofplayer] is dead use /accept emergency [id] after to send a message to player
A medical worker is comming. When medical worker arrive he have to use /heal [id] after he have to g in the ambulace from behind doors when he take it ti hospital medical get 1000$.

Thanks Diti
Reply
#2

Just add pInjured at the playerinfo enum and under onplayerdeath:
pawn Код:
PlayerInfo[playerid][pInjured] = 1;
new name;
name = GetPlayerName(playerid);
for(new i; i<MAX_PLAYERS; i++)
{
            if(IsPlayerConnected(i))
            {
                      if(PlayerInfo[i][pMember] == faction id of ems)
                      {
                                SendClientMessage(i, -1, " %s in wounded and in need of of a medic,to accept the call use /acceptcall[name]");
                      }
            }
}
And the command i will make it for you ,i have made this code now and i am going to make the command now ,but i will use the pc,i will post it asap
Reply
#3

public OnPlayerDeath(playerid, killerid, reason)
{
PlayerInfo[playerid][pInjured] = 1;
new name;
name = GetPlayerName(playerid);
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMember] == faction id of ems)
{
SendClientMessage(i, -1, " %s in wounded and in need of of a medic,to accept the call use /acceptcall[name]");
}
}
}
return 1;
}

and i got errors


D:\SAMP\xD\gamemodes\yes.pwn(71) : error 017: undefined symbol "PlayerInfo"
D:\SAMP\xD\gamemodes\yes.pwn(71) : warning 215: expression has no effect
D:\SAMP\xD\gamemodes\yes.pwn(71) : error 001: expected token: ";", but found "]"
D:\SAMP\xD\gamemodes\yes.pwn(71) : error 029: invalid expression, assumed zero
D:\SAMP\xD\gamemodes\yes.pwn(71) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)