01.02.2011, 16:01
(
Последний раз редактировалось Michael@Belgium; 01.02.2011 в 17:07.
Причина: SOLVED
)
So i'm beginning to script some cmds for the MEDIC class (like /healme, /heal <playerid>). I have that for solution:
(1) /healme cmd
BTW i got this warning:
(2) /heal <playerid>
I have tried a lot of ... codes but i don't find one :S Can you give me the code for /heal <playerid>
!! But the medic has to stand near of the player ... !!
SOLVED
-------I KNOW ONLY THESE CMDS FOR THE MEDIC CLASS, CAN YOU GIVE ME MORE ??--------------
(1) /healme cmd
pawn Код:
if (gTeam[playerid] = MEDIC) //line 757
{
if (strcmp(cmdtext,"/healme", true) == 0)
{
SetPlayerHealth(playerid, 100);
return 1;
}
}
Код:
C:\Users\Michael\Desktop\GTA\Eigen server\gamemodes\PAT.pwn(757) : warning 211: possibly unintended assignment Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning.
I have tried a lot of ... codes but i don't find one :S Can you give me the code for /heal <playerid>
!! But the medic has to stand near of the player ... !!
SOLVED
-------I KNOW ONLY THESE CMDS FOR THE MEDIC CLASS, CAN YOU GIVE ME MORE ??--------------