19.12.2015, 16:24
I did this
I get bunch of errors tho
PHP код:
new zone;
public OnGameModeInit()
{
zone= CreateDynamicRectangle(-727.7371,853.6052,635.6359,324.8097, -1, -1, -1);
return 1;
}
public OnPlayerEnterDynamicArea(playerid, areaid);
{
if(areaid == zone)
{
SetPlayerTeam(playerid,20);
}
return 1;
}
public OnPlayerLeaveDynamicArea(playerid, areaid);
{
if(areaid == zone)
{
SetPlayerTeam(playerid,0);
}
return 1;
}