31.12.2014, 01:33
(
Последний раз редактировалось Smoke123; 31.12.2014 в 04:43.
)
My first scripts.Consist in the area51 is a radioactive zone , coming down your health and you get dizzy.Sorry for my english,iam uruguayan.
Credits:
Ygzeb(help in SetTimer)
Irinel and Otacon(areas tutorial)
![](http://www.subeimagenes.com/img/sa-mp-007-1190176.png)
![](http://www.subeimagenes.com/img/sa-mp-011-1190189.png)
![](http://www.subeimagenes.com/img/sa-mp-008-1190194.png)
Credits:
Ygzeb(help in SetTimer)
Irinel and Otacon(areas tutorial)
![](http://www.subeimagenes.com/img/sa-mp-007-1190176.png)
![](http://www.subeimagenes.com/img/sa-mp-011-1190189.png)
![](http://www.subeimagenes.com/img/sa-mp-008-1190194.png)
pawn Код:
//Zona radioactiva by smoke - Radioactive Zone by smoke
#include <a_samp>
#include <streamer>
#pragma tabsize 0
new VidaTimer[MAX_PLAYERS];
new smoke;
new radiacion_smoke;
public OnPlayerEnterDynamicArea(playerid, areaid)
{
if(areaid == smoke)
{
GameTextForPlayer(playerid, "~w~You have entered a radioactive area , ~r~ care", 4000, 3);
SetPlayerDrunkLevel(playerid,50000);
VidaBajando(playerid);
}
return 1;
}
public OnPlayerLeaveDynamicArea(playerid, areaid)
{
if(areaid == smoke)
{
GameTextForPlayer(playerid, "~w~You have left the radioactive zone,~n~~b~you are now safe!", 4000, 3);
SetPlayerDrunkLevel(playerid,0);
}
return 1;
}
forward VidaBajando(playerid);
public VidaBajando(playerid)
{
new Float:Health;
GetPlayerHealth(playerid,Health);
SetPlayerHealth(playerid,Health-5);
return VidaTimer[playerid]=SetTimerEx("VidaBajando", 3000,0,"d",playerid);
}
public OnGameModeInit()
{
smoke = CreateDynamicRectangle(-81.74512, 1623.225, 397.0478, 2183.763, -1, -1, -1);
radiacion_smoke = GangZoneCreate(-93.423, 1611.547, 420.4035, 2148.729);
return 1;
}
public OnPlayerSpawn(playerid)
{
GangZoneShowForPlayer(playerid, radiacion_smoke, 0xFF000096);//default colour is red
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
KillTimer(VidaTimer[playerid]);
return 1;
}