04.03.2012, 13:09
Bem, eu e o meu amigo Edu_Pausini estamos a fazer um GM de RP e temos uma pequena dъvida, bem aqui vai:
- Eu queria que uma certa бrea em que o player entrasse ficasse infectado com uma doenзa e fosse morrendo aos poucos, aqui vai o cуdigo...
Eu gostaria que mesmo o player estando de carro, perdesse vida.
Obrigado gente (;
- Eu queria que uma certa бrea em que o player entrasse ficasse infectado com uma doenзa e fosse morrendo aos poucos, aqui vai o cуdigo...
Код:
#include <a_samp>
#include <a_players>
new INFEC;
new INFEC2;
new INFEC3;
new INFEC4;
new INFEC5;
new INFEC6;
forward Infectados(playerid);
#define VERMELHO 0xE61D06FF
#define AZUL 0x0080FFFF
#define AMARELO 0xF2F200FF
#define ROXO 0x8080FFFF
#define BRANCO 0xFFFFFFFF
#define CINZA 0xC0C0C0FF
#define COR_GROOVE 0x008000FF
#define COR_BALLAS 0x930093FF
#define COR_VAGOS 0xD9D900FF
#define COR_AZTECAS 0x00CACAFF
public OnFilterScriptInit()
{
INFEC = GangZoneCreate(-2987.5754,-2986.1350,3002.7341,452.8182),
INFEC2 = GangZoneCreate(-2986.6272,447.4655,-1070.0516,2997.9810),
INFEC3 = GangZoneCreate(917.9335,443.6140,1534.3945,604.9423),
INFEC4 = GangZoneCreate(-1103.6216,427.1572,-529.2606,1367.6926),
INFEC5 = GangZoneCreate(-1081.2606,1361.6926,-606.2606,2109.6926),
INFEC6 = GangZoneCreate(-1082.2606,2089.6926,-930.2606,2525.6926);
return 1;
}
public OnPlayerSpawn(playerid)
GangZoneShowForPlayer(playerid,INFEC,BRANCO),
GangZoneShowForPlayer(playerid,INFEC2,BRANCO),
GangZoneShowForPlayer(playerid,INFEC3,BRANCO),
GangZoneShowForPlayer(playerid,INFEC4,BRANCO),
GangZoneShowForPlayer(playerid,INFEC5,BRANCO),
GangZoneShowForPlayer(playerid,INFEC6,BRANCO);
stock IsPlayerInPlace(playerid,Float:XMin,Float:YMin,Float:XMax,Float:YMax )
{
new RetValue = 0;
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z );
if( X >= XMin && Y >= YMin && X < XMax && Y < YMax )
{
RetValue = 1;
}
return RetValue;
}
Obrigado gente (;


